大家帮忙呀,简单 的语句解决方案

大家帮忙呀,简单 的语句一个字段名称为:type值为党员 和团员  统计党员和团员的个数结果集如下:党员  团员

大家帮忙呀,简单 的语句
一个字段名称为:type

值为党员 和团员  

统计党员和团员的个数

结果集如下:

党员  团员
xxxx         xxxx

[解决办法]
select 党员=(select count(1) from t where type= '党员 '),
团员=(select count(1) from t where type= '团员 ') from t