Answer: MOD function is used to get the remainder of a division. It takes the dividend and divider as its arguments.
MOD(dividend,divider)
Example:-
SELECT MOD(12,5)
it will output 2.
It will return the dividend if the divider will 0.
Asked In: Many Interviews |
Alert Moderator