Which action should you take?

You are a database developer on an instance of SQL Server 2008. Your Prod database contains a Salesperson table that contains information about your company’s salespeople. The Salesperson table is defined as follows:


The Salesperson table contains the data shown in the exhibit. (Click the Exhibit(s) button.)
You want to create a query using the Salesperson table. You want the query to return a ranked list of salespeople by region. Within each region, salespeople should be ranked from highest to lowest based on their assigned sales quotas, with the same ranking given to salespeople who have the same assigned quota. You want the query provide optimum performance.
Which action should you take?
Exhibit:


A. Include a RANK function in the SELECT list and a correlated subquery in the FROM clause.
B. Include an OUTER APPLY clause.
C. Include a CROSS APPLY clause.
D. Include a DENSE_RANK function with an OVER clause in the SELECT list.

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.