Use Comparisons and Logic
Combine multiple filters using logical operators.
You know how to filter rows with WHERE
. Now let’s go deeper—and combine conditions using AND
, OR
, and NOT
.
Goal
You’ll aim to:
Use multiple conditions in a
WHERE
clause.Combine logic using
AND
,OR
, andNOT
.
Tables
Let’s use the following table in this lesson:
The people
table
Get hands-on with 1400+ tech skills courses.