Checking for Matches

Filtering Data

# The "world" test database is available on the page:
# https://dev.mysql.com/doc/index-other.html
SELECT Name, Population
FROM country
WHERE Continent = 'Asia'


Name Population
Afghanistan 43,844,111
United Arab Emirates 11,513,149
Armenia 3,086,700
Azerbaijan 10,246,996
Bangladesh 175,686,899
Bahrain 1,600,366
Brunei 466,330
Bhutan 796,682
China 1,406,585,000
...

This statement retrieves two columns from the country table, but instead of returning all rows, only rows with a Continent value of 'Asia' are returned.