exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 114 discussion

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

You have a database named DB1 that contains two tables named Sales.Customers and Sales.CustomerTransaction. Sales.CustomerTransactions has a foreign key relationship to column named CustomerID in Sales.Customers.
You need to recommend a query that returns the number of customers who never completed a transaction.
Which query should you recommend?

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A
Incorrect Answers:
B: The count should be on the Cust instance of Sales.Customers as it is to the right side of the join.
C: Need a WHERE statement with an IS NULL clause.
D: Must use a LEFT JOIN to obtain the NULL values.
References:
https://technet.microsoft.com/en-us/library/ms190014(v=sql.105).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
Landraille
4 years, 4 months ago
B is wrong. You have to precise the table alias : COUNT(Cust.CustomerID) Indeed, the field CustomerID is present in both tables
upvoted 2 times
Djnailz
4 years, 4 months ago
Hi Landraille is the update you are doing part of the recent exam
upvoted 1 times
...
...
TrungMyLanTJ
4 years, 6 months ago
Typo error here. All the answers are the same
upvoted 1 times
BabyBee
4 years, 5 months ago
Only A and B are the exact same answers, the others are different.
upvoted 2 times
Andy7622
4 years, 4 months ago
Nope. All are different. A and B have different SELECT . No table aliases in B so it's wrong cause there is CustomerID in both tables and if you're using aliases you get error ambigious column name. Must be Select Count(Cust.CustomerID)
upvoted 3 times
Andy7622
4 years, 4 months ago
* Sorry. .... if you're not using aliases ....
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago