Question Details

Detailed explanation and options for the selected question.

Which of the following SQL constraints is used to define relationships between tables?

A. FOREIGN KEY
B. PRIMARY KEY
C. UNIQUE
D. NOT NULL

Explanation:

The FOREIGN KEY constraint defines relationships between tables. PRIMARY KEY ensures uniqueness, UNIQUE ensures distinct values, and NOT NULL prevents NULL values.