A table is created asCREATE TABLE T (x INT CHECK (x BETWEEN 1 AND 10), y VARCHAR(5) UNIQUE);The following inserts run one after another on the empty table. An insert that violates a constraint is rejected and the others are kept.I1: INSERT INTO T VALUES (5, 'p');I2: INSERT INTO T VALUES (NULL, 'q');I3: INSERT INTO T VALUES (0, 'r');I4: INSERT INTO T VALUES (7, NULL);I5: INSERT INTO T VALUES (8, NULL);I6: INSERT INTO T VALUES (10, 'p');I7: INSERT INTO T VALUES (NULL, NULL);The number of rows in T at the end is .
Curated · Integrity Constraints
Solve it on GATE DA practice →More Relational Model & SQL problems