REGR_VALY
functionsupportedCore SQL functionsReturns NULL if the second argument is NULL; otherwise, returns the first argument. Note that REGR_VALY is a NULL-preserving function, while the more commonly-used NVL is a NULL-replacing function.
Syntax
REGR_VALY( <y> , <x> )
Parameters
| Name | Required | Description |
|---|---|---|
y: | required | An expression that evaluates to type FLOAT or DECFLOAT or that can be cast to type FLOAT or DECFLOAT. |
x: | required | An expression that evaluates to type FLOAT or DECFLOAT or that can be cast to type FLOAT or DECFLOAT. |
Returns
If any of the input expressions is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.