What should you do?

You are a database developer on an instance of SQL Server 2008 for a large retail sales organization. Your SalesOrderDetail table contains millions of rows with details of all sales orders.
Each day, you need to run a query that joins the SalesOrderDetail table with the Product table, performs a complex aggregation for each row of SalesOrderDetail, and writes the results to the SalesStats table.
You want to ensure the most current data is used in the aggregations, but that the query does not adversely affect sales representatives that are taking orders from customers.
What should you do?
A. Process the query within a transaction and set the transaction’s isolation level to REPEATABLE READ.
B. Create a stored procedure that implements transactions to process rows in the SalesOrderDetail table in small batches.
C. Create a query that builds a temporary table and run your query against the temporary table.
D. Create a CLR user-defined aggregate.

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.