Question: b ) Consider the following relation schema with referential integrity constraints: 1 0 STUDENT ( rollNo , name, degree, year, sex, deptNo, advisor ) DEPARTMENT
b Consider the following relation schema with referential integrity constraints:
STUDENT rollNo name, degree, year, sex, deptNo, advisor
DEPARTMENT depfld name, hod, phone
PROFESSOR empId name, sex, startYear, deptNo, phone
Page of
CST
Write SQL DDL statements for the following:
i Create table STUDENT, DEPARTMENT, PROFESSOR including primary and foreign key integrity constraints.
ii Add an address attribute in the table STUDENT
iii. Write an SQL statement to delete the CS department. Given the referential integrity constraints, explain what happens when this statement is executed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
