我这条Access 分类统计 语句 怎么只能使用一个字段?
"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(*)