Select, Filter and Sort · Problem 2 of 118

Customers from Egypt

EasySelect, Filter and SortShop data

Marketing is planning a campaign in Egypt.

Return the first_name, last_name and city of every customer whose country is 'Egypt'.

Hint 1

Text values are written in single quotes: country = 'Egypt'.

Reference solution

SELECT first_name, last_name, city
FROM customers
WHERE country = 'Egypt';

A text comparison needs a text value in single quotes. Without quotes, Egypt is read as a column name and the query fails. The row order is not specified in the task, so any order is accepted.