The SQL WHERE Clause
The SQL WHERE Clause
The SQL WHERE Clause
Previous
Next Chapter
Demo Database
In this tutorial we will use the well-known Northwind sample database.
Below is a selection from the "Customers" table:
CustomerID
CustomerName
ContactName
Address
Alfreds Futterkiste
Maria Anders
Obere Str. 57
Ana Trujillo
Avda. de la Constitucin
Antonio Moreno
Mataderos 2312
Thomas Hardy
Berglunds snabbkp
Christina Berglund
Berguvsvgen 8
Example
SELECT * FROM Customers
WHERE Country='Mexico';
Try it yourself
Example
SELECT * FROM Customers
WHERE CustomerID=1;
Try it yourself
Description
Equal
<>
>
Greater than
<
Less than
>=
<=
BETWEEN
LIKE
IN