Using Operators in Expressions (Report Builder 2.0)
An operator is a symbol that represents actions applied to one or more terms in an expression. The following categories of operators are supported in an expression: arithmetic, comparison, concatenation, logical or bitwise, and bit shift.
Arithmetic operators perform mathematical operations on two numeric terms in an expression.
Raises a number to the power of another number.
Multiplies two numbers.
Divides two numbers and returns a floating-point result.
Divides two numbers and returns an integer result.
Returns the integer remainder of a division. For example, 7 Mod 5 = 2 because the remainder of 7 divided by 5 is 2.
Adds two numbers together.
Returns the difference between two numbers or indicates the negative value of a numeric term.
Comparison operators test whether two expressions are the same.
Less than or equal to.
Greater than or equal to.
Not equal to.
Determines whether a specific character string matches a specified pattern. A pattern can include regular characters and wildcard characters. During pattern matching, regular characters must exactly match the characters specified in the character string. However, wildcard characters can be matched with arbitrary fragments of the character string. Using wildcard characters makes the LIKE operator more flexible than using the = and != string comparison operators.
The following table lists characters that can be used as wildcards:
%Any string of zero or more characters.
_Any single character.
[ ]Any single character within the specified range (for example, [a-f]) or set (for example, [aeiou]).
[^]Any single character not within the specified range (for example, [^a-f]) or set (for example, [^aeiou]).
Compares two object references.
String concatenation appends the second string to the first string in an expression. For other string operations, use built-in functions.
Concatenates two strings
Concatenates two strings
Logical and Bitwise
Logical and bitwise operators perform logical manipulations between two integer terms in an expression.
Performs a logical conjunction on two Boolean expressions, or bitwise conjunction on two numeric expressions.
Performs logical negation on a Boolean expression, or bitwise negation on a numeric expression.
Performs a logical disjunction on two Boolean expressions, or bitwise disjunction on two numeric values.
Performs a logical exclusion operation on two Boolean expressions, or a bitwise exclusion on two numeric expressions.
Performs logical conjunction on two expressions.
Performs logical disjunction on two expressions.
Bitwise operators perform bit manipulations between two integer terms in an expression.
Performs an arithmetic left-shift on a bit pattern.
Performs an arithmetic right-shift on a bit pattern.