group by应用

//统计各个小类案件数量
select COUNT(1) as cnt,b.c_name from t_um_event a 
join t_pmi_class b on a.c_class_big_id=b.c_id
where a.c_is_czc=1 and a.c_source=30005
group by b.c_name

猜你喜欢

转载自www.cnblogs.com/xiaz/p/9263314.html