Question: Consider the E-R diagram in Figure 8.9, which contains specializations, using subtypes and subtables. a. Give an SQL schema definition of the E-R diagram. b.
Consider the E-R diagram in Figure 8.9, which contains specializations, using subtypes and subtables.
a. Give an SQL schema definition of the E-R diagram.
b. Give an SQL query to find the names of all people who are not secretaries.
c. Give an SQL query to print the names of people who are neither employees nor students.
d. Can you create a person who is an employee and a student with the schema you created? Explain how, or explain why it is not possible.
Figure 8.9

instructor rank employee salary person ID name address student tot_credits secretary hours_per_week
Step by Step Solution
3.40 Rating (178 Votes )
There are 3 Steps involved in it
ANSWER a CREATE TABLE person ID INT name VARCHAR50 address VARCHAR50 PRIMARY KEY ID CR... View full answer
Get step-by-step solutions from verified subject matter experts
