The SQL instruction CREATE TABLE T1 (A1 CHAR(5) NOT NULL, A2 INTEGER NOT NULL, A3 CHAR(5), PRIMARY
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 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
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last