select province ,city ,population from ( select province ,city ,population ,row_number() over(partition by province order by population desc) rnk from table ) tmp where rnk <= 3 ;
欢迎分享,转载请注明来源:内存溢出
select province ,city ,population from ( select province ,city ,population ,row_number() over(partition by province order by population desc) rnk from table ) tmp where rnk <= 3 ;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)