Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
961 A unique key differs from a primary key mainly in that a unique key:
Explanation
A unique key enforces distinctness but is not the principal row identifier and may permit NULL.
Last verified on 27-11-2026
962 Which of the following is NOT a composite key?
Explanation
A single-column key is a simple key, not a composite key.
Last verified on 27-11-2026
963 What is a unique key?
Explanation
A UNIQUE constraint enforces distinct values, although in many systems it may allow one NULL unless NOT NULL is added.
Last verified on 27-11-2026
964 How many UNIQUE constraints can a table have?
Explanation
A table has at most one primary key but can have many UNIQUE constraints on different columns.
Last verified on 27-11-2026
965 Which statement about a unique key and NULL is true in most DBMSs?
Explanation
SQL standard practice varies: SQL Server allows one NULL, while Oracle and MySQL allow multiple NULLs in a UNIQUE column.
Last verified on 27-11-2026
966 What is the main difference between a PRIMARY KEY and a UNIQUE key?
Explanation
This is the core distinction: one non-null primary key per table versus multiple possibly nullable unique keys.
Last verified on 27-11-2026
967 Which column is a good candidate for a UNIQUE constraint in an Employees table?
Explanation
Email addresses are naturally distinct for each employee, unlike department, salary or age which repeat.
Last verified on 27-11-2026
968 If Email has a UNIQUE constraint, what happens on inserting a duplicate email?
Explanation
A UNIQUE constraint enforces uniqueness, so a duplicate value causes the insert to fail.
Last verified on 27-11-2026
969 A UNIQUE constraint on (FirstName, LastName) allows:
Explanation
The composite UNIQUE applies to the pair, so sharing one part is allowed.
Last verified on 27-11-2026
970 Which SQL statement adds a UNIQUE constraint to an existing Email column?
Explanation
ALTER TABLE with ADD CONSTRAINT is the standard way to add a named UNIQUE constraint to an existing table.
Last verified on 27-11-2026