Function Expressions

A function expression can return one or more values from built-in SQL functions or from user-defined functions, as the following diagram shows.

 (1)                            (2)                       
|--------+-| Algebraic Functions |-----------------------+------|
         |                          (3)                  | 
         +-| Bitshift Functions |------------------------+
         |                          (4)                  |
         +-| CARDINALITY Function |----------------------+   
         |                      (5)                      |   
         +-| SQLCODE Function |--------------------------+   
         |                     (6)                       |   
         +-| DBINFO Function |---------------------------+   
         |                                         (7)   |   
         +-| Encryption and Decryption Functions |-------+   
         |                                           (8) |   
         +-| Exponential and Logarithmic Functions |-----+   
         |                  (9)                          |   
         +-| HEX Function |------------------------------+   
         |                      (10)                     |   
         +-| Length Functions |--------------------------+   
         |                           (11)                |   
         +-| OLAP Window Functions |---------------------+   
         |                                      (12)     |   
         +-| Security Label Support Functions |----------+   
         |                                  (13)         |   
         +-| Smart-Large-Object Functions |--------------+   
         |                    (14)                       |   
         +-| Time Functions |----------------------------+   
         |                             (15)              |   
         +-| Trigonometric Functions |-------------------+   
         |                                   (16)        |   
         +-| String-Manipulation Functions |-------------+   
         |                                (17)           |   
         +-| IFX_ALLOW_NEWLINE Function |----------------+   
         |                            (18)               |   
         '-| User-Defined Functions |--------------------'   
The following examples show function expressions:
EXTEND (call_dtime, YEAR TO SECOND)
HEX (LENGTH(123))
MDY (12, 7, 1900 + cur_yr)
TAN (radians)
DATE (365/2)
ABS (-32)
LENGTH ('abc') + LENGTH (pvar)
EXP (3)
HEX (customer_num)
MOD (10,3)