Which index or indexes should you create?

Your Prod database resides on an instance of SQL Server 2008. The Prod database contains a SalesHeader table that is used by one of your applications. The SalesHeader table is defined as follows:


Currently, the SalesHeader table has a clustered index on the SalesOrderID column, and no other indexes. You want to create indexes to provide best performance to your application.
Your application allows users to perform the following actions:
• Searching for an order with a specified order number
• Searching for orders within a specified order number range
• Searching for orders that belong to specific customers
• Searching for orders with a specified customer account number
The application will use the SalesOrderID and CustomerID columns in joins to retrieve data from other tables. Which index or indexes should you create?
A. a full-table nonclustered index on the CustomerID column and a filtered index on the AccountNumber column
B. a clustered index on the CustomerID column
C. a nonclustered index on the CustomerID column and a nonclustered index on the AccountNumber column
D. a composite non-clustered index on the CustomerID and AccountNumber columns

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.