Sqlserver
 sql >> Base de données >  >> RDS >> Sqlserver

Groupe SQL par nombre de nombres

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]