The WHERE Clause

In this lesson, we will learn how to use the WHERE clause in SQL to view specific data from table.

The WHERE clause

The SQL WHERE clause is used to specify a condition while fetching the data from a single table. If the given condition is satisfied, then those specific records are returned from the table.

Syntax

The basic syntax of the SELECT statement with the WHERE clause is as shown below:

SELECT column1,
...