exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 5 discussion

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

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 Customer by running the following Transact-SQL statement:

You must insert the following data into the Customer table:

You need to ensure that both records are inserted or neither record is inserted.
Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
As there are two separate INSERT INTO statements we cannot ensure that both or neither records are inserted.

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
Anirudh_net
3 years, 3 months ago
The answer is B, Because of References on Town ID
upvoted 1 times
...
Billybob0604
4 years, 7 months ago
Same reason as previous question I would say. you explicitely need to set XACT_ABORT to ON to make sure either ALL or NONE of the records are inserted. Not my favourite kind of question though. Kind of a trap.
upvoted 1 times
...
RajaShaker
4 years, 7 months ago
The answer is B, Because of References on TownID column
upvoted 1 times
...
TheDUdeu
4 years, 9 months ago
Even if you put it in a Begin and END statement it still will be answer B. Think some people get confused with that
upvoted 1 times
...
TheDUdeu
4 years, 9 months ago
B same as the previous question look at the book: Querying Data with Transact-SQL
upvoted 1 times
...
CristianCruz
5 years ago
Sorry Answer B As there are two separate INSERT INTO statements we cannot ensure that both or neither records are inserted.
upvoted 2 times
...
CristianCruz
5 years, 1 month ago
ANSWARE IS A BECAUSE TOWNID IS CREATED AS NULL
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 ...