SQL的RANK()OVER 划分等级的用法

--例子:用月份排序对号码进行分组划分等级 selectimonth,vcmsisdn,phonebrand,phonetype, RANK() OVER ( PARTITION BY vcmsisdn ORDER BY imonth desc) rn from TableA


    推荐阅读