Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SELECT name, COUNT(*)
FROM absences
GROUP BY name
ORDER BY COUNT(*) DESC
FETCH FIRST 3 ROWS WITH TIES;
name | count
------------+-------
John Doe | 2392
Jane Doe | 1960
Richard Doe | 1898
Robert Doe | 1898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment