Calling a scalar function

A scalar function can be used wherever normal SQL scalar functions appear, such as NPS built-in scalar functions.

It returns one value per input row. The following is an example of a scalar function:
SELECT applyOperationV1Sf('+', 1, 2, 3);
APPLYOPERATIONV1SF
--------------------
6
SELECT f1, f2, f3, f4, applyOperationV1Sf('+', f1, f2, f3, f4)
FROM edutestdata
WHERE color = 'red';
F1 | F2 | F3 | F4 | APPLYOPERATIONV1SF
------1
+
------2
+
-----3
+
--------4.000
+
| | | | --------------------10
100 | 300 | 0.5| 0.500 | 401
-100 | 300 | 0.5 | 0.500 | 201
100 | -300 | 0.5 | 0.500 | -199