Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started