exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 252 discussion

Actual exam question from Microsoft's 70-461
Question #: 252
Topic #: 1
[All 70-461 Questions]

You are a database developer of a Microsoft SQL Server that hosts a business-critical high-activity OLTP system.
The database contains a table named Customer that has more than one million records. The table has the following defintion:

Customer data is updates in an external system. These changes are copied into a staging table on a weekly basis. This table has the following definition.

You need to write a Transact-SQL statement that will update the records in the Customer table by using the values in the Customer_Staging table that has matching CustomerID values. You must ensure that only one record is updated at a time.
Which Transact-SQL query should you run?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A
With a Cursor one record can be processed at a time.
References:
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/declare-cursor-transact-sql

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago