Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

More Books

Students also viewed these Databases questions