Skip to content

OR

SELECT * FROM Customers
WHERE Country='Germany' OR Country='France';
| CustomerID | CustomerName | ContactName | Address | City | Country |
|------------|--------------|--------------|-----------------|------------|----------|
| 1 | Alfreds | Maria Anders | Obere Str. 57 | Berlin | Germany |
| 2 | Ana Trujillo | Ana Trujillo | Avda Montero 37 | México D.F | France |
| 3 | Antonio | Antonio Moreno|Mataderos 2312 | Mexico | France |

The code returns all records from the Customers table where the country is either Germany or France. This demonstrated the OR logic, which returns a record if one or both of the conditions are true.