Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 1.87 KB

File metadata and controls

26 lines (23 loc) · 1.87 KB

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;

Operators in The WHERE Clause

Operator Description
= Equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
<> Not equal. Note: In some versions of SQL this operator may be written as !=
BETWEEN Between a certain range
[[LIKE]] Search for a pattern
[[IN]] To specify multiple possible values for a column
[[BETWEEN]]
[[Exists]]
[[ANY]]
[[ALL]]