Assignment 1 Adv DBMS
Assignment 1 Adv DBMS
Assignment-1
3. Add a foreign key constraint in STUDENT against DeptCode column which references department.
6. Alter the table Faculty and add check constraint such that FacultyCode starts with ‘F’
7. Alter the table Faculty and add check constraint such DeptCode is either CSE,IT, BIO,NS
8. Add constraint : DeptCode of Faculty is foreign key and references DeptCode in Department.
9. Add Constraint: HOD of Department table is foreign key and references FacultyCode of Faculty.
12. Show the names of the heads of departments with department name.
15. Insert values into the corresponding field Salary Number(8,2) (Enter distinct values).
17. Find the name, department of the faculties who earn between 8000 and 12000.
20. Find the name of the faculty who has completed 5 years.