Answered step by step
Verified Expert Solution
Link Copied!

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:
10
STUDENT (rollNo, name, degree, year, sex, deptNo, advisor)
DEPARTMENT (depfld, name, hod, phone)
PROFESSOR (empId, name, sex, startYear, deptNo, phone)
Page 3 of 5
02000CST204052104
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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

Describe the characteristics of a 360-degree performance appraisal.

Answered: 1 week ago