exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 21 question 1 discussion

Actual exam question from Microsoft's AZ-203
Question #: 1
Topic #: 21
[All AZ-203 Questions]

HOTSPOT -
You need to retrieve all order line items sorted alphabetically by the city.
How should you complete the code? To answer select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Scenario:
Order data is stored as nonrelational JSON and must be queried using Structured Query Language (SQL). The Order data is stored in a Cosmos database.

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
Daltonic75
Highly Voted 5 years, 3 months ago
I have found options and answers in AZ-200 exam: Options: https://www.examtopics.com/assets/media/exam-media/02521/0007200001.jpg Answer: https://www.examtopics.com/assets/media/exam-media/02521/0007300001.jpg
upvoted 17 times
riley5
5 years, 1 month ago
Are you sure this is the answer? I have seen other posts that say this is the answer.... select..... from li.lineItems li join o in li.line_items order by li.city
upvoted 4 times
Iq
5 years, 1 month ago
It would make sense that LineItems would be a part of the a single order so if multiple LineItems are in an order the answer from Daltonic75 appears to be logically right
upvoted 1 times
...
lau13
5 years ago
The image is being chopped off so I couldn't see schema, however, it does not make sense to put City field in LineItems, because typically an Order should have one and only one customer and one (shipping/billing) address, so answer must be either o.city or o.address.city.
upvoted 1 times
Lkk51
5 years ago
full json https://www.examtopics.com/assets/media/exam-media/02521/0006900001.png
upvoted 2 times
...
...
...
Mvii
5 years, 1 month ago
Answer in image is correct
upvoted 2 times
oxaytol
4 years, 11 months ago
yes, i was able to download the full json. City belongs to address in orders.json, so the correct answer is: 1. Orders o 2. Join li 3. o.line_items 4. O.adress.city
upvoted 18 times
Juanlu
4 years, 3 months ago
So, I suppose that's the correct one !
upvoted 1 times
...
...
...
...
Daltonic75
Highly Voted 5 years, 3 months ago
S Options ([{option1}, {option2} ...] SELECT li.id AS lineitemid, li.price FROM [{Orders o}, {LineItems li}] JOIN [{li}, {o}] IN [{o.line_items}, {li.line_items}, {o.address}] ORDER BY [{o.address.city},{li.address.city},{o.city},{li.city}] ASC
upvoted 6 times
Larry616
4 years, 9 months ago
Yes, because the relationship between Order and Items is "1:Many" In tranditional SQL, it needs to select from items table and join with order table.
upvoted 1 times
...
...
meoukg
Most Recent 3 years, 3 months ago
Got it on 03/2022, I chose as below: 1. Orders o 2. Join li 3. o.line_items 4. o.adress.city
upvoted 1 times
...
SnakePlissken
4 years ago
Answer is correct. SELECT .. FROM Orders O JOIN li IN o.line_items ORDER BY o.address.city Got this question at the exam and scored 100% on Azure Storage, so this must be correct.
upvoted 2 times
...
purav1009
5 years, 3 months ago
Options and answer please!
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 ...