Hacker News new | ask | show | jobs
by mulmen 805 days ago
In SQL we do that with a RANK window function then apply a filter to that rank. It can also be done with a correlated subquery.