Returns the kth smallest non-null or nonmissing value.
Category: | Descriptive Statistics |
Returned data type: | DOUBLE |
specifies any valid expression that evaluates to a numeric value to return.
Data type | DOUBLE |
See | <sql-expression> |
FedSQL Expressions |
specifies any valid expression that evaluates to a numeric value to be processed.
Data type | DOUBLE |
See | <sql-expression> |
FedSQL Expressions |
Statements
|
Results
|
---|---|
select smallest(1, 456, 789, .Q, 123); |
123 |
select smallest(2, 456, 789, .Q, 123); |
456 |
select smallest(3, 456, 789, .Q, 123); |
789 |
select smallest(4, 456, 789, .Q, 123); |
. |