Take the first data of each group after oracle grouping:
Data Format
The effect of grouping the first article
sql:
SELECT *
FROM (SELECT ROW_NUMBER() OVER(PARTITION BY x ORDER BY y DESC) rn,
test1.*
FROM test1)
WHERE rn = 1 ;
Take the first data of each group after oracle grouping:
Data Format
The effect of grouping the first article
sql:
SELECT *
FROM (SELECT ROW_NUMBER() OVER(PARTITION BY x ORDER BY y DESC) rn,
test1.*
FROM test1)
WHERE rn = 1 ;