[sql] SELECT * FROM (SELECT ROW_NUMBER() OVER(PARTITION BY x ORDER BY y DESC) rn, test1.* FROM test1) WHERE rn = 1 ;
oracle分组取每组第一条数据,布布扣,bubuko.com
oracle分组取每组第一条数据
原文:http://blog.csdn.net/zhangming1013/article/details/38519285