Using Multiple Condition Filters

Combine conditions in a WHERE clause with AND and OR, and use parentheses so they're checked the way you mean.

Updated

Cheat sheet: Using Multiple Condition Filters
Category
SQL
Level
Apprentice
Tags
mysql, sql