select month(ksrq),count(yzlb) from inp_cqyzk group by month(ksrq),如果要加入科室条件的话就在group by前面加个where选择条件就可以了。。。