Home »
MCQs »
SQL MCQs »
SQL Constraints Clause MCQs
Which of the following is TRUE about UNIQUE constraint?
8. Which of the following is TRUE about UNIQUE constraint?
- In columns that are subject to the UNIQUE constraint, duplicate values are not allowed.
- Unique values will always be present in the column containing the unique constraint.
- A single table can have more than one unique constraint, since it can be applied to more than one column.
- All of the above
Answer: D) All of the above
Explanation:
In case of UNIQUE constraint:
- In columns that are subject to the UNIQUE constraint, duplicate values are not allowed.
- Unique values will always be present in the column containing the unique constraint.
- A single table can have more than one unique constraint, since it can be applied to more than one column.