What should you do?

You are a database developer on an instance of SQL Server 2008. Your Prod database contains a table named Prospect that is defined as follows:


You are creating Transact-SQL code to remove obsolete prospects from the Prospect table. If the prospect is deleted from the Prospect table, the prospect’s information should be displayed.
What should you do?
A. Use a cursor to iterate through the Prospect table and perform the required deletes, and then display the deleted rows.
B. Use a DELETE statement that includes an OUTPUT clause.
C. Query the Prospect table and perform the deletes within a WHILE loop. j
D. Query the Prospect table using a SELECT…INTO statement to populate a temporary table, and process the temporary table to perform the deletions

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.