What is the use of MOD function?

 Posted by Abhisek on 2/25/2010 | Category: Sql Server Interview questions | Views: 3345
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 

Comments or Responses

Login to post response