Samples
Find the minimum frequency of the value3 in a column named value within the table value_test:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the minimum bound of the estimated frequency for a given value in a space-saving aggregate
3 in a column named value within the table value_test:
SELECT min_frequency(
(SELECT mcv_agg(20, value) FROM value_test),
3
);
min_frequency (
agg SpaceSavingAggregate,
value AnyElement
) RETURNS DOUBLE PRECISION
| Column | Type | Description |
|---|---|---|
| min_frequency | DOUBLE PRECISION | The minimum bound for the value’s estimated frequency. The minimum frequency might be 0 if the value’s frequency falls below the space-saving aggregate’s cut-off threshold. For more information, see freq_agg. |