exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 6 discussion

Actual exam question from Microsoft's 70-761
Question #: 6
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: A 🗳️
With the INSERT INTO..VALUES statement we can insert both values with just one statement. This ensures that both records or neither is inserted.
References:
https://msdn.microsoft.com/en-us/library/ms174335.aspx

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
rows are either inserted or not, answer is A
upvoted 1 times
...
binbashir22
4 years, 5 months ago
the answer is A
upvoted 1 times
...
TheDUdeu
4 years, 9 months ago
A yes the rows are either inserted or not.
upvoted 3 times
...
stm22
4 years, 11 months ago
in general, i find that typos on this site are not on the actual exams. the exam might have joins on the wrong columns, but that is intentional to test you. i've repeated this comment so people will see it. this site is great because of these discussions.
upvoted 1 times
...
CristianCruz
5 years, 1 month ago
totally agree answer If the double quote (") in front of Jossef is a typo while it should be a single quote ('), then it should be A. Otherwise, it should be "B". during the exam you should mark B for the double quote
upvoted 1 times
...
Hamburger
5 years, 2 months ago
If the double quote (") in front of Jossef is a typo while it should be a single quote ('), then it should be A. Otherwise, it should be "B".
upvoted 3 times
kiri2020
4 years, 8 months ago
it doesn't ask if that statement WILL insert or give an error, it asks if both or none, and the answer is Yes, regardless if it is typo or intentional, BOTH records will not get inserted.
upvoted 1 times
...
...
Ikhlaq
5 years, 4 months ago
Solution meets needs, Ansewer is A. Yes
upvoted 3 times
...
MsMartaa
5 years, 5 months ago
In above solution are not inserting all needed data, so right answer is B
upvoted 2 times
Lukis92
5 years, 4 months ago
"both records are inserted or neither record is inserted" - solution meets expectations.
upvoted 13 times
kyliek7
4 years, 6 months ago
Lukis92 is absolutely right. Typos can be made here by the authors. It does meet expectations even if it doesn't have any sophisticated command to rollback or something ;)
upvoted 1 times
...
...
RobKozak
5 years, 3 months ago
TownID allows for nulls and create date will default to the current date if no record is inserted into those columns. They do not need to be specified in the insert statement.
upvoted 4 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 ...