PERCENTILE Function Syntax | Teradata Vantage - PERCENTILE Syntax - Analytics Database - Teradata Vantage

Time Series Tables and Operations

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢
PERCENTILE (
  [ DISTINCT | ALL ] 'value_expression',
  percentile
  [, { LINEAR | LOW | HIGH | NEAREST | MIDPOINT } ]
)

Syntax Elements

ALL
All non-null value_expressions, including duplicates, in the computation.
DISTINCT
Excludes duplicates specified by value_expression from the computation.
value_expression
A literal or column expression for which a set of aggregate functions are computed for the series.

The value_expression cannot be a reference to a view column derived from a function, and cannot contain any ordered analytical or aggregate functions.

percentile
A Teradata literal float value that represents the desired percentile.
LINEAR

Use linear interpolation to interpolate the result value when the desired result lies between two data points.

This parameter is not case-sensitive.

LOW

Use a low value interpolation scheme to interpolate the result value when the desired result lies between two data points.

This parameter is not case-sensitive.

HIGH
Use a high value interpolation scheme to interpolate the result value when the desired result lies between two data points.
This parameter is not case-sensitive.
NEAREST
Use a nearest value interpolation scheme to interpolate the result value when the desired result lies between two data points.
This parameter is not case-sensitive.
MIDPOINT
Use a midpoint interpolation scheme to interpolate the result value when the desired result lies between two data points.
This parameter is not case-sensitive.