这一题,对分清查询的逻辑关系很有帮助 DQL语法发中,有6种基本查询方式 基本查询 条件查询where 聚合查询count、avg... 分组查询group by 排序查询order by 分页查询limit *以上查询皆为平等关系 select university, round(avg(question_cnt),4) avg_question_cnt from user_profile group by university order by avg_question_cnt asc;
这一题,对分清查询的逻辑关系很有帮助 DQL语法发中,有6种基本查询方式 基本查询 条件查询where 聚合查询count、avg... 分组查询group by 排序查询order by 分页查询limit *以上查询皆为平等关系 select university, round(avg(question_cnt),4) avg_question_cnt from user_profile group by university order by avg_question_cnt asc;