PERCENTILE_CONT/PERCENTILE_DISC Syntax | VantageCloud Lake - PERCENTILE_CONT/PERCENTILE_DISC Function Syntax - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
{ PERCENTILE_CONT | PERCENTILE_DISC } ( value_expression_1 )
  WITHIN GROUP ( ORDER BY value_spec [,...] )

Syntax Elements

value_expression_1
A numeric value between 0 and 1 inclusive.
WITHIN GROUP
The order in which the values in a group or partition are sorted.
ORDER BY
The order in which the values in a group or partition are sorted.
value_spec
value_expression_2 [ ASC | DESC ] [ NULLS { FIRST | LAST } ]
value_expression_2
A single expression that must be a numeric value.
ASC
Ascending sort order.
DESC
Descending sort order.
NULLS FIRST
NULL results are to be listed first.
NULLS LAST
NULL results are to be listed last.