Orders a list of values, and returns a value that is based on a position in the list.
| Category: | Descriptive Statistics |
| Returned data type: | DOUBLE |
specifies an integer that is less than or equal to the number of elements in the list of arguments.
| Requirement | position must be a positive number. |
| Data type | DOUBLE |
specifies any valid expression that evaluates to a numeric value.
| Requirement | At least two arguments are required. |
| Data type | DOUBLE |
| See | <sql-expression> |
| FedSQL Expressions |
|
Statement
|
Result
|
|---|---|
select ordinal(4,1,.,2,3,-4,5,6,7); |
2 |