Created
October 4, 2014 12:21
-
-
Save sinsoku/3430b03fc83c0f6681b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| g.sellday, | |
| g.gamename, | |
| COUNT(u.game) "count" | |
| FROM gamelist g | |
| INNER JOIN userreview u | |
| ON g.id = u.game | |
| WHERE | |
| g.sellday > to_date('2000', 'YYYY') | |
| GROUP BY | |
| g.sellday, | |
| g.gamename | |
| ORDER BY | |
| COUNT(u.game) DESC | |
| LIMIT | |
| 30 | |
| ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment