MOD returns the remainder (modulus) of argument 1 divided by argument 2. The result is negative only if argument 1 is negative.
mod(integer_type, integer_type)
The result can be null; if any argument is null, the result is the null value.