MEDIAN
Syntax
Standard
Extended
MEDIAN( value )
MEDIAN( value
[ FIXED ... | INCLUDE ... | EXCLUDE ... ]
[ BEFORE FILTER BY ... ]
)
More info:
Description
Returns the median value.
Argument types:
value
—Date | Datetime | Fractional number | Integer
Return type: Same type as (value
)
Example
MEDIAN([Profit])
Data source support
ClickHouse 19.13
, PostgreSQL 9.4
.