% (Modulo)

Returns the remainder of one expression divided by another.

Syntax

dividend%divisor

Arguments

dividend
The numeric expression to divide. dividend is any valid expression of any one of the numeric data types.
divisor
The numeric expression to divide the dividend by. divisor is any valid expression of any one of the numeric data types.

Result Types

Int32

Example

SELECT VALUE product FROM Products AS product 
where product.Price = @price1 % @price2

Last edited Mar 25, 2013 at 10:01 AM by ansiboy, version 1

Comments

No comments yet.