DELHI TECHNOLOGICAL UNIVERSITY
CO203 – DATABASE MANAGEMENT
SYSTEMS LAB FILE
Submitted to: Rohit Beniwal Submitted by: Arnav Preet
COE Department
2k18/CO/089
G1/A2 , COE
INDEX
S.NO. EXPERIMENT DATE REMARKS SIGNATURE
Experiment 5
Objective:
To implement data manipulation language (DML)
REQUIREMENTS:
Relational Schema, Web Browser- Google Chrome, SQL Tryit Editor v1.6 - W3Schools
THEORY:
SQL is a standard language for storing, manipulating and retrieving data in databases.
● SQL stands for Structured Query Language
● SQL lets you access and manipulate databases
● SQL became a standard of the American National Standards Institute (ANSI) in
1986, and of the International Organization for Standardization (ISO) in 1987
What Can SQL do?
● SQL can execute queries against a database
● SQL can retrieve data from a database
● SQL can insert records in a database
● SQL can update records in a database
● SQL can delete records from a database
● SQL can create new databases
● SQL can create new tables in a database
● SQL can create stored procedures in a database
● SQL can create views in a database
● SQL can set permissions on tables, procedures, and views
SQL Commands:
The standard SQL commands to interact with relational databases are CREATE,
SELECT, INSERT, UPDATE, DELETE and DROP. These commands can be
classified into the following groups based on their nature –
Data Manipulation
Language
Comman Descriptio
d n
SELECT Retrieves certain records from one or more tables.
UPDATE Modifies records.
INSERT Creates a record.
DELETE Deletes records.
Creating Table:
Inserting Values:
Delete Command:
Update Command:
CONCLUSION:
In this experiment, we learnt about SQL and the various commands available. We made
use of DML commands in order to create and make changes in the database according to
the ER model created. We saw how we can create, update, insert values into and delete
certain values from the table using various SQL commands.