Database MCQS - QUESTION DETAILS

Which SQL Server statement is used to create a unique constraint on a column?
A. UNIQUE
B. ADD UNIQUE
C. CONSTRAINT UNIQUE
D. CREATE CONSTRAINT

'UNIQUE' is used to create a unique constraint on a column in SQL Server.

Similar Questions

In SQL Server, what is the purpose of the UNPIVOT operator?






In SQL Server, what is the purpose of the SEQUENCE object?






What is the purpose of the SQL TRUNCATE TABLE statement?






Which SQL Server statement is used to grant execute permissions on a stored procedure?






In MySQL, what is the purpose of the DESC keyword in an ORDER BY clause?






What is the purpose of the SQL Server XML INDEX option?






What is the purpose of the SQL Server RAISEERROR statement?






In MySQL, which function is used to concatenate two or more strings?






In SQL Server, what is the purpose of the TRY_CONVERT() function?






Which SQL Server statement is used to remove all records from a table and reset identity seed?