你可能感兴趣的试题
SELECT HAVING GROUPBY…HAVING WHERE
SELECT…FROM…WHERE SELECT…WHERE…FROM SELECT…WHERE…GROUPBY SELECT…FROM…ORDERBY
HAVING DISTINCT ORDERBY GROUPBY
“连接”选项卡与SQL语句的GROUPBY短语对应 “筛选”选项卡与SQL语句的HAVING短语对应 “排序依据”选项卡与SQL语句的ORDERBY短语对应 “分组依据”选项卡与SQL语句的JOINON短语对应
WHERE FROM SELECT GROUPBY
WHERE GROUPBY HAVING ORDERBY
说明要查询的数据 对查询结果进行分组 对查询结果进行排序 说明查询条件
加入了程序控制结构和变量 加入了建库和建表语句 提供了分组(GroupBy)查询功能 提供了Min、Max等统计函数
ORDERBY GROUPBY HAVING ASC
SELECT…FROM…ORDERBY SELECT…WHERE…GROUPBY SELECT…WHERE…HAVING SELECT…FROM…WHERE
groupby orderby having limit
distinct where unique groupby
WHERE SELECT FROM GROUPBY