NumbersSQL standard
MOD
Returns the remainder of dividing one number by another.
Syntax
MOD(<dividend>, <divisor>)
<dividend> % <divisor>
MOD(10, 3) gives 1, because 10 = 3 · 3 + 1. The % operator does the same. Most often it's used to check whether a number is even, take every second row or deal rows into several groups in turn.