exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 160 discussion

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

The Agent table of a Microsoft SQL Server database contains several million rows. The database uses the SQL_Latin1_General_Cp1_CS_AS collation.
You need to ensure that the following requirements are met:
✑ The values of the StateRefID column conform to the pattern of 3 uppercase letters followed by 5 numeric digits, such as "ABC12345".
✑ The StateRefID values are unique within the Agent table.
✑ The values of all records that will be inserted or updated in the Agent table are correctly formatted.
✑ Exisitng rows are ignored
Which Transact-SQL statement should you run?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A

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
lilupv
4 years, 11 months ago
In A the pattern is checked only after converting of the value to Uppercase. However, the value has to be in Uppercase without converting. I think, it is C
upvoted 1 times
...
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 ...