AND and OR may be intermixed, although AND has higher precedence than OR

mysql> CREATE TABLE Employee( -> id int, -> first_name VARCHAR(15), -> last_name VARCHAR(15), -> start_date DATE, -> end_date DATE, -> salary FLOAT(8,2), -> city VARCHAR(10), -> description VARCHAR(15) -> ); Query OK, 0 rows affected (0.05 sec) mysql> mysql> mysql> insert into Employee(id,first_name, last_name, start_date, end_D ate, salary, City, Description) -> values (1,'Jason', 'Martin', '19960725', '2 0060725', 1234.56, 'Toronto', 'Programmer'); Query OK, 1 row affected (0.00 sec) mysql> mysql> insert into Employee(id,first_name, last_name, start_date, end_D ate, salary, City, Description) -> mysql> SELECT * FROM employee WHERE (first_name = 'Jane' AND city = 'Va ncouver') -> OR (first_name = 'James' AND city = 'N ew York');

'OR' operator can be expressed as '||'
mysql> SELECT * FROM employee -> WHERE ((employee.id = 1) OR (employee.city = 'Vancouver')); mysql> SELECT * FROM employee WHERE first_name = 'Celia' OR city = 'Van couver';