Developing SQL Databases — Question 73

You use Microsoft SQL Server Profile to evaluate a query named Query1. The Profiler report indicates the following issues:
✑ At each level of the query plan, a low total number of rows are processed.
✑ The query uses many operations. This results in a high overall cost for the query.
You need to identify the information that will be useful for the optimizer.
What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because the sqlserver.missing_join_predicate event can help identify missing join conditions that may be causing inefficient query execution. Options A and C do not directly address the specific issues related to the query plan and overall cost, while option B focuses on missing column statistics, which is not as relevant in this context.