sql server 2005 怎么用一条查询语句把这个字段进行两次查询

2025-01-18 15:35:29
推荐回答(3个)
回答1:

SELECT count(aType) as numbers,aType FROM Articles group by aType

回答2:

借用楼上的,SELECT cType ,count(*) from Articles group by cType

回答3:

SELECT cType ,count(*) from Articles group by count(*)