Question: The SQL instruction CREATE TABLE T1 (A1 CHAR(5) NOT NULL, A2 INTEGER NOT NULL, A3 CHAR(5), PRIMARY KEY (A1), FOREIGN KEY (A2) REFERENCES T2, ON

The SQL instruction


CREATE TABLE T1

(A1 CHAR(5) NOT NULL, 

A2 INTEGER NOT NULL,

A3 CHAR(5),

PRIMARY KEY (A1),

FOREIGN KEY (A2) REFERENCES T2,

ON DELETE SET DEFAULT);


(a) It creates the table T1 in which any delete operation on either T1 or T2 violating the referential integrity constraint causes the insertion of default values in the corresponding attributes of the other table


(b) It creates the table T1 in which any delete operation on T2 violating the referential integrity constraint causes the insertion of default values in the corresponding T1 attributes


(c) none of the answers are correct


(d) It creates the table T1 in which any delete operation on T1 violating the referential integrity constraint causes the insertion of default values in the corresponding attributes of T2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!