WHERE Clause
??
Operators Available
Operator
Description
=
Equal
>
Greater than
<
Less than
>=
Greater than or equal
<=
Less than or equal
<> or !=
Not equal
AND
Logical operator AND
OR
Logical operator OR
Return true if a value matches any value in a list
Return true if a value is between a range of values
Return true if a value matches a pattern
Return true if a value is NULL
NOT
Negate the result of other operators
Where
Cannot use column alias with where clause
SELECT select_list
FROM table_name
WHERE condition
ORDER BY sort_expressionWhere with OR
Where with AND
Where with BETWEEN (NOT BETWEEN)
Where with LIKE
Where with IN and NOT IN
Last updated
Was this helpful?