exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 192 discussion

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

DRAG DROP -
Your Microsoft SQL Server database contains tables as shown below.
You have tables that were created by running the following Transact-SQL statements:

The Product table contains 10,000 records. The maximum ProductID is 11,000.
There are 12 rows in the Category table. The maximum CategoryID is 12.
The Product table contains at least one product in every category.
Data in the tables was accidently modified. To correct this, you need to make some updates directly to the tables. You issue several statements.
Which result or results will you obtain for each Transact-SQL statement? To answer, drag the appropriate results to the correct Transact-SQL statements. Each result may be used once. More than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1:
The SET IDENTITY_INSERT command allows explicit values to be inserted into the identity column of a table.
Box 2:
The Product table contains at least one product in every category.
Box 3:
Box 4:
Bit is a data type that can take a value of 1, 0, or NULL.
References:
https://docs.microsoft.com/en-us/sql/t-sql/data-types/bit-transact-sql?view=sql-server-2017 https://docs.microsoft.com/en-us/sql/t-sql/statements/set-identity-insert-transact-sql?view=sql-server-2017

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
Dimples205
4 years, 7 months ago
The first statement cannot succeed because it missing the Value for the ProductDescription. Even if the mark is NULL, you still have to state that in the Values.
upvoted 1 times
...
lilupv
4 years, 8 months ago
Also, we can not use the third statement because the foreign key constraint is violated.
upvoted 1 times
...
lilupv
4 years, 8 months ago
You can not use delete statement because the statement is not correct (there is no FROM), not because of foreign key.
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago