Skip to content

Instantly share code, notes, and snippets.

@neurotech
Created February 29, 2016 01:25
Show Gist options
  • Save neurotech/b4f2c6f8b1e124ce1b2a to your computer and use it in GitHub Desktop.
Save neurotech/b4f2c6f8b1e124ce1b2a to your computer and use it in GitHub Desktop.
-- Example:
-- alc.lates_ytd = 5
-- and
-- alc.diff = 2
SELECT alc.lates_ytd / alc.diff AS "AVERAGE"
FROM example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment