Parameter | Type | Description |
---|---|---|
value | decimal, double | the values to be counted |
error | decimal, double | the maximum allowable error of the percentile to be found. Must be greater than 0.0 and less than 1.0, and must be the same for all values. This argument is optional, with default value 0.01 |
Returns: decimal
Example
query:
SELECT APPROX_MEDIAN(close_value)
FROM sales_pipeline
result:
approx_median |
---|
491.0 |