exam questions

Exam DP-900 All Questions

View all questions & answers for the DP-900 exam

Exam DP-900 topic 1 question 82 discussion

Actual exam question from Microsoft's DP-900
Question #: 82
Topic #: 1
[All DP-900 Questions]

DRAG DROP -
You have a table named Sales that contains the following data.

You need to query the table to return the average sales amount per day. The output must produce the following results.

How should you complete the query? To answer, drag the appropriate values to the correct targets. Each value 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.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: SELECT -

Box 2: GROUP BY -
Example:
When used with a GROUP BY clause, each aggregate function produces a single value covering each group, instead of a single value covering the whole table.
The following example produces summary values for each sales territory in the AdventureWorks2012 database. The summary lists the average bonus received by the sales people in each territory, and the sum of year-to-date sales for each territory.
SELECT TerritoryID, AVG(Bonus)as 'Average bonus', SUM(SalesYTD) as 'YTD sales'

FROM Sales.SalesPerson -
GROUP BY TerritoryID;
Reference:
https://docs.microsoft.com/en-us/sql/t-sql/functions/avg-transact-sql

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
AleTato
Highly Voted 3 years, 6 months ago
LOL! It's real this question? Anyway the answer is CORRECT... but.... LOOOOOOLLLLL
upvoted 72 times
SilNilanjan
3 years, 5 months ago
This exam has got non technical audiences as well :)
upvoted 36 times
sdokmak
2 years, 7 months ago
or people that never touched sql before and want to smash this exam solely with the help of exam topics (me lol).
upvoted 30 times
...
...
mattzocsgogod
2 years, 11 months ago
yesnt kekw
upvoted 4 times
...
Tigereyes19
3 years ago
hahaha
upvoted 3 times
...
AnonymousJhb
2 years ago
Don't be a buttstick. This is not a sql exam, it's a data engineering exam. There are prob non sql ppl here.
upvoted 32 times
...
...
sandyshd
Highly Voted 3 years, 4 months ago
correct
upvoted 10 times
...
AGTraining
Most Recent 7 months, 4 weeks ago
SELECT GROUP BY
upvoted 2 times
...
mamahani
1 year, 6 months ago
I took the exam 12.04.2023; this question appeared, correct answer: select / group by
upvoted 6 times
...
chiiiweiii
1 year, 7 months ago
Correct Answer
upvoted 1 times
...
AndreLima
2 years ago
Avanced level to this exam DP-900.... But...but lets go !
upvoted 2 times
...
xRiot007
2 years, 3 months ago
SELECT - to have any results, you need a SELECT statement. GROUP BY - The sales date is our criteria of aggregating the rows. Because there is an AVG() function call in the SELECT, the resulting groups will have 1 row each, resulting in the table below
upvoted 9 times
...
Eltooth
2 years, 3 months ago
Select Group By
upvoted 2 times
...
dk87
2 years, 5 months ago
Exam: 05/18/2022
upvoted 4 times
...
RichMelbourne
2 years, 6 months ago
Shown on test 15/04/2022
upvoted 4 times
...
SiDoCiOuS
2 years, 7 months ago
Appeared on the exam on 03/22/2022 Answers are correct! Select/Group by
upvoted 5 times
...
Yvekke
2 years, 9 months ago
correct
upvoted 1 times
...
cianryan
2 years, 11 months ago
[SELECT], [GROPU BY] is the nswer.
upvoted 2 times
...
ahee
2 years, 12 months ago
SELECT & GROUP BY is the correct answer.
upvoted 2 times
...
Drummer
3 years, 6 months ago
The answer is correct!
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