Which statement will successfully create a filtered index?

You manage a large database on an instance of SQL Server 2008. You have a table named TrxHistory that contains millions of rows and multiple columns, including a TrxDate column and a TrxStatus column. Most of the rows have a TrxStatus value of ‘D’, and most of your queries process only these rows for specified date ranges.
You decide to create a filtered index to improve query performance.
Which statement will successfully create a filtered index?
A. CREATE NONCLUSTERED INDEX FI_TrxStatusD ON TrxHistory (TrxDate)WITH (IGNORE_DUP_KEY = OFF)WHERE TrxStatus = ‘D’;
B. CREATE NONCLUSTERED INDEX FI_TrxStatusD ON TrxHistory (TrxDate, TrxStatus = ‘D’);
C. CREATE NONCLUSTERED INDEX FI_TrxStatusD ON TrxHistory (TrxDate) WHERE TrxStatus = ‘D’;
D. CREATE NONCLUSTERED INDEX FI_TrxStatusD ON TrxHistory (TrxDate) USING TrxStatus = ‘D’;

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.