sqlserver2005有关键字ntile(x)和over(partition by.. order by..)子句配合.