Oracle Scalar Functions
Oracle Scalar Functions
Scalar Functions (Single row functions): These are the functions which act on only one value
at a time.
Mathematical functions:
1. ABS (n): Returns the absolute value of ‘n’.
Example: SELECT ABS(-15) “Absolute Value” FROM dual;
Note: (i) SELECT requires a table name in it’s FROM clause, oracle provides a dummy table
called dual for this purpose.
(ii) DUAL is a special one-row, one-column table present by default in Oracle. It has a
single VARCHAR2(1) column called DUMMY that has a value 'X'.