Sqlserver
 sql >> Datenbank >  >> RDS >> Sqlserver

SQL-Gruppierung nach Anzahl der Anzahlen

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]