Question 23Asked in UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)

Drop Table cannot be used to drop a Table referenced by ______constraint.

Drop Table cannot be used to drop a Table referenced by ______constraint. (1) Primary key (2) Sub key (3) Super key (4) Foreign key
  1. A(1)
  2. B(1), (2) and (3)
  3. C(4)
  4. D(1) and (4)
Show answerHide answer

Correct answer: (C) (4)

Explanation

If you drop child table first, the foreign key will be dropped as well. If you attempt to drop percent table first you will get an "could not drop object "a" because it is referenced by a foreign key constraint error, Drop table can not be used to drop a table reference by a foreign key constraint. The referencing foreign key constraint or the referencing table must be dropped.

From UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions)

This is question 23 of UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.