sqlserver2005有关键字ntile(x)和over(partition by.. order by..)子句配合.
select id , name , colid , rn from ( select * , rn = ntile (10 ) over (partition by id order by colorder ) from syscolumns )t where rn = 1