Skip to content

Instantly share code, notes, and snippets.

@syrm
Created November 16, 2010 11:18
Show Gist options
  • Save syrm/701711 to your computer and use it in GitHub Desktop.
Save syrm/701711 to your computer and use it in GitHub Desktop.
SELECT p.id, MAX(g.date)
FROM players p
INNER JOIN games g ON (g.player_id = p.id)
GROUP BY p.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment