GROUP BY 语句_查询概述_Spark Streaming SQL_开发指南_E-MapReduce-

GROUP BY 语句_查询概述_Spark Streaming SQL_开发指南_E-MapReduce

阿里云服务器优惠

GROUP BY 语句

GROUP BY 语句用于根据一个或多个列对结果集进行分组。

语法

SELECT [ DISTINCT ]
{ * | projectItem [, projectItem ]* }
FROM tableExpression
[ GROUP BY { groupItem [, groupItem ]* } ];

示例

SELECT Customer, SUM(OrderPrice) FROM xxx
GROUP BY Customer;
赞(0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  • potplayer
  • directx