开始使用免费开始使用

分组

全世界的用户都在 eSymphony 购买曲目。您想了解每个国家有多少位客户。为此,您需要对数据进行分组。

本练习是课程的一部分

Oracle SQL 入门

查看课程

练习说明

  • 选取 Country 以及每个国家的客户总数。
  • 按国家对结果进行分组。

交互式实操练习

通过完成这段示例代码来试试这个练习。

-- Select the country and the total number of customers
___ ___, ___(___) AS Total
FROM Customer
-- Group the results by country
___ ___ ___
编辑并运行代码