Data Analystdata analyticsbeginner4 interactive MCQs in app
SQL filtering
WHERE row filtering predicatesIS NULL vs = NULLAND/OR operator precedence and BETWEEN bounds
Core Concept
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.
Worked Example
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.
Common Pitfall
forgetting parentheses around (A OR B) AND C, or writing = NULL / <> NULL instead of IS NULL / IS NOT NULL.
Recommended Readings & Practice
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.