Multiple choice technology databases

What does the MOD Function do?

  1. It divides both the values and gives the quotient.

  2. It multiplies both the values and gives the product.

  3. It divides both the values and gives the remainder.

  4. There is no such function.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The MOD function in SQL returns the remainder of division. For example, MOD(10, 3) returns 1 because 10 divided by 3 equals 3 with remainder 1. This is a duplicate of question 139471.