Skip to content

Instantly share code, notes, and snippets.

@PMeinshausen
Created September 18, 2014 17:01
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 PMeinshausen/e8891d2c8c5668c290e5 to your computer and use it in GitHub Desktop.
Save PMeinshausen/e8891d2c8c5668c290e5 to your computer and use it in GitHub Desktop.
SELECT * FROM percentile(
ON input_table
PARTITION BY column_name [, column_name]*
PERCENTILE('percentile'[,'percentile']*)
TARGET_COLUMNS('column_name'[,'column_name']*)
[GROUP_COLUMNS('column_name'[,'column_name']*)]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment