MS SQL SERVER 2022
Presented By:
Nikhil Analytics Team
(Operators)
Operators
• ARITHMETIC
• COMPARISON
• LOGICAL
• IN/NOT IN
• BETWEEN
• LIKE
• UNION (discussed at the time of joins)
• UNION ALL (discussed at the time of joins)
• INTERSECT (discussed at the time of joins)
• EXCEPT (discussed at the time of joins)
Operators(contd..)
• ARITHMETIC
+ -- Plus / also act as concatenation operator
- -- Minus
* -- Multiplication
/ -- Division
Operators(contd..)
• COMPARISON
Greater than -- > GT
Less than -- < LT
Equal -- = EQ
Not Equal -- <> NE
Greater Than Equal -- >= GE
Lesser Than Equal -- <= LE
Operators(contd..)
• LOGICAL
AND
OR
NOT
• IN
• NOT IN
• BETWEEN
Operators(contd..)
• LIKE
Pattern Matching
Wildcard Meaning
% Any string of zero or more
characters.
_ (underscore) Any single character.
[] Any single character within the
specified range (for example,
[a-f]) or set (for example, [abcdef]).
[^] Any single character not within the
specified range (for example, [^a -
f]) or set (for example, [^abcdef])