Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Gruppo SQL per conteggio di conteggi

SELECT [Count Of Register], COUNT(1) [Grouped Count]
FROM
(
    SELECT COUNT( [Id]) as [Count Of Register],
           Tag as [Tag]
    FROM [Members]
    Group By Tag 

) MyTable
GROUP BY [Count Of Register]