Last active
August 29, 2015 13:56
-
-
Save mewm/9218943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
m.id, | |
u.user_id | |
FROM | |
matches m | |
INNER JOIN ( | |
SELECT | |
match_id | |
FROM | |
match_user | |
ORDER BY | |
created_at ASC | |
LIMIT 10 | |
) u on u.match_id on m.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment