Kathmandu University Department of Computer Science and Engineering
Kathmandu University Department of Computer Science and Engineering
A Lab Report
on
“Lab 1 and 2”
[Code No: COMP 232]
Submitted by
Nabin Ghimire(17)
Submitted to
Mr. Santosh Khanal
Department of Computer Science and Engineering
DDL is language used to define data structures and modify the data.
The SQL commands that deals with the manipulation of data present
in the database belong to DML or Data Manipulation Language and this
includes most of the SQL statements.
Example of DQL:
We also have the other Query languages which can be listed as Figure:
1. STRING DATATYPES:
2. NUMERIC DATATYPES:
SCHEMA IN SQL
A database schema is the skeleton structure that represents the logical view of
the entire database. It defines how the data is organized and how the relations
among them are associated. It formulates all the constraints that are to be applied
on the data.
A database schema defines its entities and the relationship among them. It
contains a descriptive detail of the database, which can be depicted by means of
schema diagrams. It’s the database designers who design the schema to help
programmers understand the database and make it useful.
SYNTAX:
SYNTAX:
SYNTEAX:
Where,
Also, select clause list the attributes desired in the result of query. The From clause
lists the relation involved in a query.
Firstly,
NABIN_VEHICLEINSURANCE:
CREATING THE DATABASE:
Fig - 2
NABIN_SCHOOL: