exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 10 discussion

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

Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.
You query a database that includes two tables: Project and Task. The Project table includes the following columns:

The Task table includes the following columns:

You plan to run the following query to update tasks that are not yet started:
UPDATE Task SET StartTime = GETDATE() WHERE StartTime IS NULL
You need to return the total count of tasks that are impacted by this UPDATE operation, but are not associated with a project.
What set of Transact-SQL statements should you run?

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B
The WHERE clause of the third line should be WHERE ProjectID IS NULL, as we want to count the tasks that are not associated with a project.

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
CristianCruz
Highly Voted 5 years, 2 months ago
Answer: B The WHERE clause of the third line should be WHERE ProjectID IS NULL, as we want to count the tasks that are not associated with a project.
upvoted 5 times
...
Anirudh_net
Most Recent 3 years, 4 months ago
B is Correct
upvoted 1 times
...
Vermonster
4 years, 7 months ago
It is the 3rd answer (probably C) because nothing will show up in deleted if the value was previously NULL so you need to count inserted
upvoted 1 times
...
chaoxes
5 years ago
I tested it on database and Answer is B.
upvoted 3 times
Mountie
4 years, 10 months ago
could you please show the whole script ?
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 ...