Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with summary as (
- select m.id, m.title, row_number() over(partition by m.title) as rank, count(m.id) over(partition by m.title) as count
- from public."Mail" m
- )
- select *
- from summary
- where rank = 1
Advertisement
Add Comment
Please, Sign In to add comment