UGC-NET Jun 2015 · SQL Queries

MCQ · 2 marks · Problem DBMS-SQL-0018

Drop Table cannot be used to drop a table referenced by a constraint.(a) Primary key(b) Sub key(c) Super key(d) Foreign key
  1. A
    a
  2. B
    a, b and c
  3. C
    d
  4. D
    a and d

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionIf another table holds a foreign key that references the table, DROP TABLE is rejected (unless CASCADE CONSTRAINTS is given), because the referencing rows would be left dangling. A table's own primary key, sub key or super key does not stop it from being dropped.So the blank is (d) Foreign key.Answer: C

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com