📞 0339-0387701 (WhatsApp)
Contact
☰
🔍
Home
Important MCQs
Computer
Current Affairs
Data Science & AI (NCCIA)
Database & Data Handling (NCCIA)
English
Everyday Science
General Knowledge
General Science
Information & Networking (NCCIA)
Islamic Studies MCQs
Maths MCQs
Pak Study
Pedagogy
Software Engineering (NCCIA)
Telecom / Electrical Fundamentals (NCCIA)
Urdu MCQs
Past Papers
ASF Past Papers
FIA Past Papers
FPSC Past Papers
NCCIA Past Papers
NTS Past Papers
PPSC Past Papers
Latest Jobs
Army Jobs
Education Department
Federal Govt Jobs
Health Department
Police Jobs
Sindh Govt Jobs
Resources
About Us
Contact
🔍
Home
» Which constraint ensures that a column cannot contain duplicate values?
« Back to Database & Data Handling (NCCIA)
Which constraint ensures that a column cannot contain duplicate values?
A. CHECK
B. DEFAULT
C. NOT NULL
D. UNIQUE ✅
Correct Answer:
D. UNIQUE
Explanation
UNIQUE prevents duplicate values in a column.
NOT NULL only prevents missing values and CHECK limits allowed values.
« Which data type should be used for a date of…
Which constraint ensures that every row has a value in… »
Related MCQs
A table has candidate keys A and B. A is chosen as the primary key. What is B called?
To list all employees with their manager’s name, what kind of join is needed?
Which statement creates an index on a column to speed up searches?
A School changes a ClassID and ON UPDATE SET NULL is defined on Student.ClassID. What happens?
What is a common example of a surrogate key in SQL Server?
Why is a NOT NULL constraint on a foreign key a relationship constraint?
In which situation is a surrogate key most useful?
A Doctor can treat many Patients, and a Patient can be treated by many Doctors over time. What is the correct mapping?