MOD(x, y) gets the remainder when x is divided by y. : MOD « Numerical Math Functions « Oracle PL/SQL Tutorial






The following example uses MOD() to display the remainder when 8 is divided by 3 and 4, respectively:

SQL>
SQL> SELECT MOD(8, 3), MOD(8, 4) FROM dual;

  MOD(8,3)   MOD(8,4)
---------- ----------
         2          0

SQL>








14.15.MOD
14.15.1.MOD(x, y) gets the remainder when x is divided by y.
14.15.2.MOD function in action
14.15.3.select mod(8,3), mod(13,0)
14.15.4.MOD(8, 3)
14.15.5.MOD(8, 4)
14.15.6.List all employee with odd employee number
14.15.7.Combine case statement with mod function
14.15.8.Use floor(), mod() and date calculation to show how many weeks and days an employee has been working here
14.15.9.Use mod() function to get all event employee id