You are a database developer on an instance of SQL Server 2008.

You are a database developer on an instance of SQL Server 2008. Your Prod database contains an InvTransaction table defined as follows:


Users frequently run the following query:
SELECT TranDate, TranType, Quantity
FROM InvTransaction
WHERE TranType = @type AND TranDate BETWEEN @begin AND @end AND Quantity > 100;
Which action should you take to improve the query’s performance?
A. Create a clustered composite index on TranDate, TranType, and Quantity.
B. Create a nonclustered index on TranDate.
C. Create a clustered index on TranDate and a composite non-clustered index on the TranType and Quantity columns.
D. Create a nonclustered index on TranDate and include TranType and Quantity.

microsoft-exams

Leave a Reply

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


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