0% found this document useful (0 votes)
71 views

DBMS LAB Assignment 1

The document outlines 15 tasks for a DBMS lab assignment involving inserting, displaying, modifying, altering, renaming, copying, and deleting data from tables in a database. The tasks include inserting data, displaying employee and department information, modifying employee details, altering tables by adding, removing, and modifying columns, renaming tables, copying tables, and deleting rows.

Uploaded by

Manan Bhand
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

DBMS LAB Assignment 1

The document outlines 15 tasks for a DBMS lab assignment involving inserting, displaying, modifying, altering, renaming, copying, and deleting data from tables in a database. The tasks include inserting data, displaying employee and department information, modifying employee details, altering tables by adding, removing, and modifying columns, renaming tables, copying tables, and deleting rows.

Uploaded by

Manan Bhand
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Manan Bhand 18BCE0915 L51-L52

DBMS LAB assignment 1


DATE-8/8/19

Manan Bhand 18BCE0915


1.Insert the data given above in both employee, department and project tables.

2.Display all the employees’ information.


Manan Bhand 18BCE0915 L51-L52

3. Display Employee name along with his SSN and Supervisor SSN

4. Display the employee names whose bdate is ’20-JUN-1983’.


Manan Bhand 18BCE0915 L51-L52

5. Display salary of the employees without duplications

6. Display the MgrSSN, MgrStartDate of the manager of ‘Finance’ department.


Manan Bhand 18BCE0915 L51-L52

7. Modify the department number of an employee having fname as ‘Joyce’ to 5

8. Alter Table department add column DepartmentPhoneNum of NUMBER data type and insert
values into this column only.
Manan Bhand 18BCE0915 L51-L52

9. Alter table department to modify the size of DepartmentPhoneNum

10. Modify the field name DepartmentPhoneNum of departments table to PhNo.


Manan Bhand 18BCE0915 L51-L52

11. . Rename Table Department as DEPT.

12. Alter Table department remove column PhNo.


Manan Bhand 18BCE0915 L51-L52

13. Create a table COPYOFDEPT as a copy of the table DEPT.

14. Delete all the rows from COPYOF DEPT table.


Manan Bhand 18BCE0915 L51-L52

15. Remove COPYOF DEPT table.

You might also like