Quiz 10 Question 7 of 20

A T-SQL report against the Warehouse computes, for every branch, the number of loan requests that occurred after that branch's most recent inspection date, using a correlated subquery inside the SELECT list that re-evaluates the inspection lookup for every branch row. The query is one of the slowest in the nightly report suite. Which rewrite is most likely to improve its performance while returning the same results?

Select an answer to reveal the explanation.

Motivation