Skip to content

Instantly share code, notes, and snippets.

@michaelpj
Created March 4, 2015 17:55
Show Gist options
  • Save michaelpj/06618f7d92fd627a6b5f to your computer and use it in GitHub Desktop.
Save michaelpj/06618f7d92fd627a6b5f to your computer and use it in GitHub Desktop.
Funky aggregates
from int n
where n in [1..5]
and n = max(int m | m = n +1)
select n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment