exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 95 discussion

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

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
You have a database that contains several connected tables. The tables contain sales data for customers in the United States only.
You have the following partial query for the database. (Line numbers are included for reference only.)

You need to complete the query to generate the output shown in the following table.

Which statement clause should you add at line 3?

  • A. GROUP BY
  • B. MERGE
  • C. GROUP BY ROLLUP
  • D. LEFT JOIN
  • E. GROUP BY CUBE
  • F. CROSS JOIN
  • G. PIVOT
  • H. UNPIVOT
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️
Example of GROUP BY CUBE result set:
In the following example, the CUBE operator returns a result set that has one grouping for all possible combinations of columns in the CUBE list and a grand total grouping.

References:
https://technet.microsoft.com/en-us/library/bb522495(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
safiullah
Highly Voted 5 years, 10 months ago
Hi, My feeling is this should be a GROUP BY ROLL UP because if you notice we have the following columns. COUNTRY, PROVINCE, CITY and in ROLL UP we will get the combinations in an hierarchy. First Combination : COUNTRY, PROVINCE, CITY Second COmbination: COUNTRY, PROVINCE Third Combination: COUNTRY FINAL combination: ALL This is what we see in the resultant table.
upvoted 45 times
Tazul
5 years, 9 months ago
Agreed
upvoted 6 times
...
...
BenAsare
Highly Voted 5 years, 7 months ago
GROUP BY ROLL UP is the correct one!
upvoted 7 times
...
Ankita10feb
Most Recent 4 years, 5 months ago
It should be group by RollUp
upvoted 1 times
...
BabyBee
4 years, 7 months ago
The answer should be ROLLUP, the combination of 1 Province name and a city that does not belong to that Province simply do not make sense.
upvoted 1 times
...
kiri2020
4 years, 8 months ago
result set looks like GROUP BY ROLLUP, but the TotalSales in Select is missing SUM()
upvoted 2 times
...
Oooo
4 years, 9 months ago
The answer should be Group by rollup however there has to be an aggregate function in the select clause.
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 ...