摘要: 根据c1,c2分组,并且根据c3排序,取第一行select tt.* from (select row_number() over(partition by c1, c2 order by c3 desc) r, t.* from test_table t) tt where tt.r = 1 阅读全文
posted @ 2018-07-02 12:47 第二人生Bonnie 阅读(2006) 评论(0) 推荐(0) 编辑