A scalar numeric function that
returns the modulus (remainder) of a number divided by another.
Synopsis
{fn MOD(dividend,divisor)}
MOD returns the mathematical remainder (modulus) from the dividend by
the divisor. It returns a negative or zero result for a division involving
a negative divisor. MOD returns NULL if passed a NULL value for either argument.
MOD can only be used as an ODBC scalar function (with the curly brace
syntax).
The following example shows the result of MOD.
The following example shows the result of MOD with a negative dividend.
The following example shows the result of MOD with a negative divisor.