REMAINDER function [Numeric]

Returns the remainder when one whole number is divided by another.

Syntax
REMAINDER( dividend, divisor )
Parameters
  • dividend   The dividend, or numerator of the division.

  • divisor   The divisor, or denominator of the division.

Remarks

Alternatively, try using the MOD function.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 2.

SELECT REMAINDER( 5, 3 );