22bce20428 DBMS Lab1
22bce20428 DBMS Lab1
Name:- D.S.S.SASHANK
Reg No:- 22BCE20428
Slot:- L41 – L42
LAB-1
1) Create Table Employee with attributes firstName, LastName, SSN,Address,
Salary, Birthday, Sex, SupervisorSSN, DepartmentNo.
SQL code:-
OUTPUT:
SQL code:-
OUTPUT:
3) Insert the data given above in both employee, department and project
tables.
SQL code:
OUTPUT:
4) Display all the employees’ information.
SQL code:
OUTPUT:
5) Display Employee name along with his SSN and Supervisor SSN.
SQL code:
OUTPUT:
6) Display the employee names whose bdate is '02-02-2001'.
SQL code:
OUTPUT:
SQL code:
OUTPUT:
8) Display the MgrSSN, MgrStartDate of the manager of 'Engineering'
department.
SQL code:
OUTPUT: