開始使用免費開始

分組

全世界的人都在 eSymphony 購買曲目。你想快速了解每個國家各有多少位顧客。這表示你需要對資料進行分組。

本練習屬於課程

Oracle SQL 入門

檢視課程

練習說明

  • 選取 Country,以及每個國家的顧客總數。
  • 依國家分組結果。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

-- Select the country and the total number of customers
___ ___, ___(___) AS Total
FROM Customer
-- Group the results by country
___ ___ ___
編輯並執行程式碼