Skip to content

Instantly share code, notes, and snippets.

@goaquin
Last active April 6, 2017 21:54
Show Gist options
  • Save goaquin/aa018911483afaeccfb8bffc4de657eb to your computer and use it in GitHub Desktop.
Save goaquin/aa018911483afaeccfb8bffc4de657eb to your computer and use it in GitHub Desktop.
select field, sum(field) from (subquery);
-- example
-- field | sum(field)
-- 1 | 11
-- 5 | 11
-- 4 | 11
-- 1 | 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment