求SQL统计不同的发贴状态
求SQL统计不同的发贴状态
===============================
现有表[Question],字段[Status]分别有值1,2,3,4,如何能一次统计出各种状态有多少条,现在我只会一个一个的统计,就是写四句:
select count(*) as cs1 from [Question] where [Status] = 1;
select count(*) as cs2 from [Question] where [Status] = 2;
select count(*) as cs3 from [Question] where [Status] = 3;
select count(*) as cs4 from [Question] where [Status] = 4;
请高手赐教!谢!