FACTORIAL

ANSI DB2 SQL/DS XDB
      X

Returns the value of expr factorial. The format appears below:

FACTORIAL(expr)

The value of the parameter expr must be greater than or equal to 0 and less than or equal to 167. For example:

FACTORIAL(6) = 720