Which constraint ensures that all values in a column are unique? MCQ with Answer and Explanation

Which constraint ensures that all values in a column are unique?
A. UNIQUE
B. CHECK
C. PRIMARY KEY
D. FOREIGN KEY
Answer: Option A
Solution (By JKExamLibrary)
UNIQUE constraint ensures that all values in a column are distinct, but allows NULL (unless combined with NOT NULL).

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
Which of the following is an example of DML command?
A. ALTER
B. DROP
C. CREATE
D. INSERT

Correct Answer: Option D


Explanation:
INSERT is a Data Manipulation Language (DML) command used to add data to tables.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
In SQL, the WHERE clause is used in:
A. Only CREATE statements
B. SELECT, UPDATE, DELETE statements
C. Only INSERT statements
D. Only SELECT statements

Correct Answer: Option B


Explanation:
WHERE clause filters records in SELECT, UPDATE, and DELETE operations.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
The concept that prevents concurrent transactions from interfering with each other and creating data inconsistencies is known as what?
A. Atomicity
B. Isolation
C. Consistency
D. Durability

Correct Answer: Option B


Explanation:
Isolation ensures that the execution of concurrent transactions does not interfere with one another, making them appear as if they are executing sequentially.

This question belongs to: Computer Database Management System (DBMS)