"select aaa,count(aaa) as n form xueshengku group by aaa order by count(*)"
上面这条语句能统计字段aaa的,我现在需要加上bbb的,我这里该怎么写?
分类,统计,
------解决方案--------------------
如果 bbb 是数字 可以用 max()或min()
select aaa,count(aaa) as n , max(bbb) form xueshengku group by aaa order by count(*)