ASA SQL Reference
SQL Functions
Alphabetical list of functions
Returns the remainder when one whole number is divided by another.
MOD ( dividend, divisor )
dividend The dividend, or numerator of the division.
divisor The divisor, or denominator of the division.
Division involving a negative dividend will give a negative or zero result. The sign of the divisor has no effect.
SQL/92 Vendor extension.
SQL/99 SQL/foundation feature outside of core SQL.
Sybase Not supported in Adaptive Server Enterprise. The % operator is used as a modulo operator in Adaptive Server Enterprise.
The following statement returns the value 2.
SELECT MOD( 5, 3 )