the result of test_expression is within a range |
RANGE_N returns the position of the range. |
the result of test_expression is NULL |
If RANGE_N does not specify one of the following:- BETWEEN * AND *
- UNKNOWN
- NO RANGE OR UNKNOWN
RANGE_N returns NULL.
If RANGE_N specifies the range BETWEEN * AND *, RANGE_N returns 1, regardless of whether NO RANGE, NO RANGE OR UNKNOWN, or UNKNOWN is specified.
If RANGE_N does not specify the range BETWEEN * AND * and - If NO RANGE OR UNKNOWN is specified, RANGE_N returns n + 1.
- If UNKNOWN is specified and NO RANGE is not specified, RANGE_N returns n + 1.
- NO RANGE and UNKNOWN are specified, RANGE_N returns n + 2.
|
test_expression is outside all the ranges in the list |
If NO RANGE or NO RANGE OR UNKNOWN is specified, RANGE_N returns n + 1. If neither NO RANGE nor NO RANGE OR UNKNOWN is specified, RANGE_N returns NULL.
|