1. group by
https://www.cnblogs.com/jingfengling/p/5962182.html
- where 子句的作用是在对查询结果进行分组前,将不符合where条件的行去掉,即在分组之前过滤数据,where条件中不能包含聚组函数,使用where条件过滤出特定的行。
- having 子句的作用是筛选满足条件的组,即在分组之后过滤数据,条件中经常包含聚组函数,使用having 条件过滤出特定的组,也可以使用多个分组标准进行分组。
2. join
https://www.cnblogs.com/reaptomorrow-flydream/p/8145610.html
3. all
https://www.cnblogs.com/feiquan/p/8654171.html
4.from 多个表
https://www.cnblogs.com/shelly01-zhou/p/8011167.html
5.exists, not exists
https://www.cnblogs.com/cjm123/p/8177017.html
6.join using 和join on 的区别
https://www.cnblogs.com/linjulin/p/5691373.html
7. case when