Q1
True / FalseA UNIQUE constraint ensures that all values in a column are unique.
The UNIQUE constraint ensures that all values in a column or a set of columns are unique.
Q2
True / FalseA table can have only one UNIQUE constraint.
A table can have multiple UNIQUE constraints on different columns or sets of columns.
Q3
True / FalseNULL values are allowed in a column with a UNIQUE constraint.
NULL values are allowed in a column with a UNIQUE constraint, but only one NULL is allowed.
Q4
True / FalseUNIQUE constraints can be applied to multiple columns to enforce uniqueness across the combination of values.
UNIQUE constraints can be applied to a combination of columns to ensure that the combined values are unique.
Q5
True / FalseUNIQUE constraints automatically create a unique index on the specified column.
UNIQUE constraints create a unique index to enforce the uniqueness of values in the specified column.
Q6
True / FalseA UNIQUE constraint and a PRIMARY KEY constraint can be applied to the same column.
A column cannot have both a UNIQUE constraint and a PRIMARY KEY constraint, as PRIMARY KEY already ensures uniqueness.
Q7
True / FalseYou can drop a UNIQUE constraint using the ALTER TABLE statement.
The ALTER TABLE statement can be used to drop a UNIQUE constraint from a table.
Q8
True / FalseUNIQUE constraints can be applied to both character and numeric columns.
UNIQUE constraints can be applied to any data type, including character and numeric columns.
Q9
True / FalseUNIQUE constraints enforce the uniqueness of values during both INSERT and UPDATE operations.
UNIQUE constraints check for uniqueness during both INSERT and UPDATE operations.
Q10
True / FalseUNIQUE constraints can be applied to columns that allow NULL values.
UNIQUE constraints can be applied to columns that allow NULL values, but only one NULL value is allowed.
Q11
True / FalseA UNIQUE constraint can be created at the time of table creation or after the table has been created.
A UNIQUE constraint can be added to a table during creation or added later using ALTER TABLE.
Q12
True / FalseThe UNIQUE constraint can be defined only on a single column in a table.
The UNIQUE constraint can be defined on a single column or a combination of columns in a table.
Q13
True / FalseUNIQUE constraints are a type of integrity constraint.
UNIQUE constraints are used to maintain data integrity by ensuring unique values in a column.
Q14
True / FalseYou cannot disable a UNIQUE constraint temporarily.
UNIQUE constraints can be disabled temporarily using the ALTER TABLE statement.
Q15
True / FalseUNIQUE constraints can be enforced at the column level only.
UNIQUE constraints can be enforced at both the column level and the table level.