1.oracle中按一个字段分组排序后取第一条数据。
SELECT * FROM (SELECT ROW_NUMBER() OVER(PARTITION BY 分组字段 ORDER BY 排序字符 DESC) rn, 表名.* FROM 表名) WHERE rn = 1