Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You create a table named Customerby running the following Transact-SQL statement:
You create a cursor by running the following Transact-SQL statement:
If the credit limit is zero, you must delete the customer record while fetching data. You need to add the DELETE statement.
Solution: You add the following Transact-SQL statement:
Does the solution meet the goal?
A . Yes
B . No
Answer: B
Explanation:
Use a WHERE CURRENT OF clause, which deletes at the current position of the specified cursor.
References: https://docs.microsoft.com/en-us/sql/t-sql/statements/delete-transact-sql