Questo browser non è più supportato.
Esegui l'aggiornamento a Microsoft Edge per sfruttare i vantaggi di funzionalità più recenti, aggiornamenti della sicurezza e supporto tecnico.
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?
Shipped
Delivered
NULL
You must return the number of customers in each city. Which query should you use?
SELECT City, COUNT(*) AS CustomerCount FROM Sales.Customer;
SELECT City, COUNT(*) AS CustomerCount FROM Sales.Customer GROUP BY City;
SELECT City, COUNT(*) AS CustomerCount FROM Sales.Customer ORDER BY City;
You must return a row for each category with an average price over 10.00. Which query should you use?
SELECT Category, AVG(Price) FROM Store.Product WHERE AVG(Price) > 10.00;
SELECT Category, AVG(Price) FROM Store.Product GROUP BY Category WHERE AVG(Price) > 10.00;
SELECT Category, AVG(Price) FROM Store.Product GROUP BY Category HAVING AVG(Price) > 10.00;
You must answer all questions before checking your work.
Questa pagina è stata utile?
Serve aiuto con questo argomento?
Provare a usare Ask Learn per chiarire o guidare l'utente in questo argomento?