What should you do?

You are a database developer. You plan to design a database solution by using SQL Server 2008.
A database contains a table named Customer. The structure of the Customer table is as shown in the following table.


The solution uses the following stored procedure to return customer details.
CREATE PRCC GetCustomersByCountry @CountryID int
AS
SELECT customer_id, customer_name FROM Customer
WHERE country_id = @CountryID;
Users report that the stored procedure takes a long time to execute. You need to optimize the performance of the stored procedure.
What should you do?
A. Recreate the primary key as a nonclustered unique index and build a clustered index on the country_id column.
B. Build a nonclustered index on the country_id column and use the INCLUDE clause to include the customer_name column.
C. Build a nonclustered index only on the country_id column.
D. Build a nonclustered index on the country_id, customer_name, and customer_id 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.