December 2016
Intermediate to advanced
368 pages
6h 44m
English
In this lesson, you learn how to use the SELECT statement’s WHERE clause to specify search conditions.
WHERE ClauseDatabase tables usually contain large amounts of data, and you seldom need to retrieve all the rows in a table. More often than not, you’ll want to extract a subset of the table’s data as needed for specific operations or reports. Retrieving just the data you want involves specifying search criteria, also known as filter conditions.
Within a SELECT statement, you filter data by specifying search criteria in the WHERE clause. The WHERE clause is specified right after the table name (using the FROM clause) as follows:
Input
SELECT prod_name, prod_price FROM products WHERE prod_price = 2.50;
Read now
Unlock full access