Hacker News new | ask | show | jobs
by nknealk 1369 days ago
There’s a LAST_VALUE statement for this kind of thing that most databases support. Partition by sale person name order by number of products.