SQL WHERE
The SQL WHERE Clause
The WHERE clause is used to filter records.
It is used to extract only those records that fulfill a specified condition.
Syntax
SELECT column1, column2, …
FROM table_name
WHERE condition;
Examples:
Operators in The WHERE Clause
The following operators can be used in the WHERE clause:
= : Equal
Ex.
> : Greater than
Ex.
< : Less than
Get Elvan Tektaş’s stories in your inbox
Join Medium for free to get updates from this writer.
Ex.
<= : Less than or equal
Ex.
>= : Greater than or equal
Ex.
<> : Not equal. Note: In some versions of SQL this operator may be written as !=
Ex.
BETWEEN : Between a certain range
Ex.
LIKE : Search for a pattern
Ex.
IN : specify multiple possible values for a column
Ex.








