Skip to content

Instantly share code, notes, and snippets.

@sinsoku
Created October 4, 2014 12:21
Show Gist options
  • Select an option

  • Save sinsoku/3430b03fc83c0f6681b3 to your computer and use it in GitHub Desktop.

Select an option

Save sinsoku/3430b03fc83c0f6681b3 to your computer and use it in GitHub Desktop.
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