SOARDO
Data Analystdata analyticsbeginner4 interactive MCQs in app

SQL filtering

WHERE row filtering predicatesIS NULL vs = NULLAND/OR operator precedence and BETWEEN bounds

SQL WHERE filters individual rows BEFORE any grouping or aggregation runs. Combine predicates carefully with AND (both conditions must hold), OR (either condition holds—wrap OR inside parentheses when combined with AND!), IN, BETWEEN (inclusive of both bounds), and IS NULL / IS NOT NULL.

WHERE status = 'paid' AND amount > 50 keeps only rows matching both rules; WHERE delivered_at = NULL fails in SQL because NULL comparisons evaluate to UNKNOWN—always use IS NULL.
forgetting parentheses around (A OR B) AND C, or writing = NULL / <> NULL instead of IS NULL / IS NOT NULL.
SQL filtering — Core Readingread ↗SQLBolt Interactive Lessonspractice ↗PostgreSQL Exercisespractice ↗

Practice SQL filtering with 4 graded MCQs & written feedback.

Take SOARDO’s free 12-question diagnostic to see how strong you are across your target role and unlock adaptive daily missions.

Test yourself free on SOARDO →View full Data Analyst roadmap

More Data Analyst Study Guides