Skip to content

Instantly share code, notes, and snippets.

@diana-shealy
Created May 21, 2016 01:00
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 diana-shealy/0ae34825e7a8f07335ae540a0f63cd82 to your computer and use it in GitHub Desktop.
Save diana-shealy/0ae34825e7a8f07335ae540a0f63cd82 to your computer and use it in GitHub Desktop.
SELECT
TD_TIME_FORMAT(time, ‘yyyy-MM’) as MONTH,
category,
usage
FROM usage_snapshot
WHERE TD_TIME_RANGE(time, ‘2016-04-01’)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment