select i=identity(int,1,1),FStartGrade,COUNT(*)as FTotalPeo into qh from VLoglist group by FStartGrade select top 6 * from qh where i>1 order by i