Question: Use the following create statement to answer the next 5 questions. create table emp ( A int, B int, C int, D int, E int,

Use the following create statement to answer the next 5 questions. create table emp ( A int, B int, C int, D int, E int, F int not nul1 references dept(dno), unique (D, E ), primary key (A, B, , , foreign key E references project(pno)) 1. How many primary keys are there in table emp? a. 1 b. 2 c. 3 d. 4 2. How many keys are there in table emp? a. 1 b. 2 c. 3 d. 4 3. How many foreign keys are there in table emp? a. 1 b. 2 c. 3 d. 4 4. What is the primary key of table dept? a. A,B,C b. F c. dno d. pno 5. What should be added to the above create statement to do the following: "If a department is deleted, also delete all its employees". a. on delete restrict b. on delete set default c. on delete set null d. on delete cascade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
