📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which constraint links a column in one table to the primary key of another table?

A. UNIQUE
B. DEFAULT
C. FOREIGN KEY ✅
D. CHECK

Correct Answer: C. FOREIGN KEY

Explanation

  • A foreign key creates a link between tables and enforces referential integrity.
  • It must match an existing primary key value or be NULL.