Search This Blog

Thursday, March 21, 2013

Modulo operator SQL Server

SQL Server > Operators > Modulo

Modulo operator (%)
Returns the remainder of one number divided by another


Example:

SELECT 39 % 7 AS Remainder

Result:
4