Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A). FOREIGN KEY(I). Ensures that all values in a column are distinct.
(B). DEFAULT(II). The column which refers to the value of an attribute is defined as the primary key in another table.
(C). UNIQUE(III). The column which can uniquely identify each row in a table.
(D). PRIMARY KEY(IV). A value is specified for a column if no value is provided.

Solution

✅ Correct Option: 2
List IList II
(A) FOREIGN KEY(II) Refers to a value that is the primary key in another table
(B) DEFAULT(IV) Value used for a column if none is provided
(C) UNIQUE(I) Ensures all values in a column are distinct
(D) PRIMARY KEY(III) Uniquely identifies each row in a table

UNIQUE and PRIMARY KEY are easily confused. Both prevent duplicates, but a table can have many UNIQUE columns and only one PRIMARY KEY, and a PRIMARY KEY cannot be NULL.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question