...

/

Solution: Use Comparisons and Logic

Solution: Use Comparisons and Logic

We'll cover the following...

Query

SELECT * FROM pets WHERE (type = 'dog' OR type = 'cat') AND age < 4;

Explanation

This SQL query retrieves all columns from the pets table, but only for pets that are either dogs ...