Which Transact-SQL statement should you run

Database users report that SELECT statements take a long time to return results. You run the following Transact-SQL statement

You need to create one nonclustered covering index that contains all of the columns in the above table. You must minimize index key size.
Which Transact-SQL statement should you run
A. CREATE NONCLUSTERED INDEX IX_User ON Users (CountryCode, UserName);
B. CREATE NONCLUSTERED INDEX IX_User ON Users (CountryCode, UserStatus) INCLUDE (UserName);
C. CREATE NONCLUSTERED INDEX IX_User ON Users (CountryCode, UserStatus, UserName);
D. CREATE NONCLUSTERED INDEX IX_User ON Users (UserStatus, CountryCode) INCLUDE (UserName);

microsoft-exams

One thought on “Which Transact-SQL statement should you run

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.