You are developing a database application by using Microsoft SQL Server 2012.
An application that uses a database begins to run slowly.
Your investigation shows the root cause is a query against a read-only table that has a clustered index.
The query returns the following six columns:
✑ One column in its WHERE clause contained in a non-clustered index
✑ Four additional columns
✑ One COUNT (*) column based on a grouping of the four additional columns
You need to optimize the statement.
What should you do?
Comments