Knowledge check

Completed
1.

You run the following query: SELECT OrderNo, CHOOSE(Status, 'Ordered', 'Shipped', 'Delivered') AS OrderState FROM Sales.Order; Which OrderState value is returned for rows with a Status value of 2?

2.

You must return the number of customers in each city. Which query should you use?

3.

You must return a row for each category with an average price over 10.00. Which query should you use?