已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
您執行下列查詢:SELECT OrderNo, CHOOSE(Status, 'Ordered', 'Shipped', 'Delivered') AS OrderState FROM Sales.Order;針對 Status 值為 2 的資料列,將會傳回哪個 OrderState 值?
已發貨
已送達
NULL
您必須傳回每個城市中的客戶數目。 您應該使用哪個查詢?
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;
針對平均價格超過 10.00 的每個類別目錄,必須各傳回一個資料列。 您應該使用哪個查詢?
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;
您必須先回答所有問題,才能檢查進度。
此頁面對您有幫助嗎?