SELECT TOP 10 UserID,GameID,ProtectID,Accounts, ROW_NUMBER() over (order by UserID desc) AS GROUPS from QPAccountsDB..AccountsInfo;