How do you enforce uniqueness on a composite index in SQL Server for columns 'FirstName' and 'LastName' in the 'Employees' table? - Study24x7
Social learning Network
4 followers study24x7 22 Oct 2024 11:12 AM study24x7 study24x7

How do you enforce uniqueness on a composite index in SQL Server for columns "FirstName" and "LastName" in the "Employees" table?

A

CREATE UNIQUE INDEX ux_name ON Employees(FirstName, LastName)

B

UNIQUE INDEX CREATE Employees(FirstName, LastName)

C

CREATE INDEX UNIQUE Employees ON (FirstName, LastName)

D

INDEX CREATE UNIQUE ON Employees(FirstName, LastName)

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles