DBMS Lab File
DBMS Lab File
DBMS Lab File
COMMUNICATION TECHNOLOGY
GURU GOBIND SINGH INDRAPRASTHA
UNIVERSITY, NEW DELHI-110078
(2020-2024)
PRACTICAL FILE
OF
DATABASE MANAGEMENT SYSTEMS
IT - 259
BACHELOR OF TECHNOLOGY
IN
INFORMATION TECHNOLOGY
(iii) DROP: It is used to delete both the structure and record stored
in the table.
Syntax:
DROP TABLE table_name;
(iv) TRUNCATE: It is used to delete all the rows from the table and
free the space containing the table
Syntax:
TRUNCATE TABLE table_name;
Syntax:
INSERT INTO TABLE_NAME (col1, col2, col3,.... col N)
VALUES (value1, value2, value3, .... valueN);
Syntax:
SELECT expressions
FROM TABLES
WHERE conditions;
select * from Table; --this is use for fetch the whole data from table.
LAB-4
2.
3.
4.
5.
6.
LAB-6
Consider Insurance database given below and answer the following
queries in SQL. Consider the insurance database given below. The
primary keys are made bold and the data types are specified.