DP-900 Exam QuestionsBrowse all questions from this exam

DP-900 Exam - Question 291


You have an Azure SQL database that contains tables for customers and orders.

You need to create a query that will return the orders placed by each customer.

Which two Transact-SOL statements should you include in the query? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Show Answer
Correct Answer:

Discussion

3 comments
Sign in to comment
OnlineCHOptions: CE
Apr 13, 2025

SELECT * FROM Orders o JOIN Customers c ON o.CustomerId=c.Id

Roy34Options: CE
Apr 16, 2025

Select for listing and join for joining

SIH007Options: CD
Mar 10, 2025

If you want to see the customers' orders you should use ORDERBY, using SELECT would not meet the requirement to return the orders by customer.