Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 24, 2020 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/be2d813df291ebdca22bb3d046e1af13 to your computer and use it in GitHub Desktop.
Save codecademydev/be2d813df291ebdca22bb3d046e1af13 to your computer and use it in GitHub Desktop.
Codecademy export
SELECT user_id, SUM(watch_duration_in_minutes)
FROM watch_history
GROUP BY 1
HAVING 2 > 400;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment