select top 100 ID, count (*)from [database].[table].[table]group by idorder by count (*);
select top 100 ID, count (*) myCountfrom [database].[table].[table]group by idorder by myCount;
select top 100 ID, count (ID) myCountfrom [database].[table].[table]group by idorder by myCount;
select top 100 ID, count (*) myCountfrom [database].[table].[table]group by id, col2, col3, col4, col5......................................order by myCount;