转自:http://blog.csdn.net/hxxiaopei/article/details/8034308 http://blog.csdn.net/huagong_adu/article/details/7937616 LDA浅析 http://www.slideshare.net/aurora1625/topic-model-lda-and-all-that Topic model, LDA and all that LDA漫游指南 http://yuedu.baidu.com/eb
首先group by 的简单说明: group by 一般和聚合函数一起使用才有意义,比如 count sum avg等,使用group by的两个要素: (1) 出现在select后面的字段 要么是是聚合函数中的,要么就是group by 中的. (2) 要筛选结果 可以先使用where 再用group by 或者先用group by 再用having select count(a),b,c from test group by b,c; 可以看出 group by 两个条件的工作过程