Project: Use Comparisons and Logic
Practice how to combine multiple filters using logical operators.
We'll cover the following
Task
You want to find all the pets that are either dogs or cats, but only if they’re younger than 4 years old.
💡 Hint: You’ll need to combine multiple conditions using both
OR
andAND
. Be sure to group theOR
condition with parentheses so that the logic is applied correctly.
Use the table below to help write a query that gives you just those results.
The pets
table
Get hands-on with 1400+ tech skills courses.