Samples
Find the bottom 5 values fromi * 13 % 10007 for i = 1 to 10000, and
the integer result of the operation that generated that modulus.
Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
agg | MinNBy | - | ✔ | The aggregate to return the results from. Note that the exact type here varies based on the type of data stored. |
dummy | ANYELEMENT | - | ✔ | This is purely to inform Postgres of the response type. A NULL cast to the appropriate type is typical. |
Returns
| Column | Type | Description |
|---|---|---|
| into_values | SETOF BIGINT | SETOF DOUBLE PRECISION | SETOF TIMESTAMPTZ | The lowest values seen while creating this aggregate. |