Functions are a type of FairCom DB SQL expression that return a value based on the argument they are supplied. FairCom DB SQL supports two types of functions:
FairCom DB SQL does not provide a mechanism for calling a scalar function directly from a user-defined function. To use scalar functions, it is necessary to call the function from within a FairCom DB SQL statement. FairCom DB SQL defines the special table SYSCALCTABLE which has only one row for use in situations where all the data is in the inputs.