SQL FunctionsNumeric FunctionsFACTORIALOn this pageFACTORIALReturns the factorial logarithm of x. If x is less than or equal to 0, the function returns 0.SyntaxFACTORIAL( <x> )ExamplesSELECT FACTORIAL(5);┌──────────────┐│ factorial(5) │├──────────────┤│ 120 │└──────────────┘