SQLServer ntile获取每组前10%的数据

SQLServer ntile获取每组前10%的数据

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