Skip to content

IN

SELECT *
FROM Customers
WHERE Country IN ('Germany', 'France', 'UK');
Terminal window
+----+---------+-----------+---------+------------+
| ID | Name | Country | City | PostalCode |
+----+---------+-----------+---------+------------+
| 1 | Thomas | Germany | Berlin | 10115 |
| 2 | Lauren | France | Paris | 75001 |
| 3 | Sophie | UK | London | W2 1HQ |
+----+---------+-----------+---------+------------+

The SQL IN keyword allows you to select records from a set of specific values. Here, it selects customers whose countries are either ‘Germany’, ‘France’ or ‘UK’.