(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
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
Solved in 2 steps