Understanding “Ands” and “Ors” in the Query Grid

If you want to construct a query with multiple criteria, you need to understand the difference between the logical operators And and Or. Although these operators can combine more than two conditions, for the sake of simplicity, let’s use just two. Start with the premise that an And operator selects records only if both conditions in a two-condition query are met. In contrast, an Or operator selects records only if one or the other condition in a two condition query are met. In other words, at least one condition in an Or query must be met.

This is where it gets a little tricky. Suppose you want to see both the Colorado and the Mississippi losses in the Losses table. You would think that you could ...

Get Access 2002 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.