Code24Lab

Scalar Subqueries: One Value Inside Another Query

Lesson 10 of 20 Lab ๐Ÿ”’ Locked

Lessons in this course

  1. INNER JOIN: Matching Rows Across Two TablesLabFree
  2. Joins with WHERE, GROUP BY and ORDER BYLab Locked
  3. LEFT JOIN: Keeping Rows Without a MatchLab Locked
  4. ON vs WHERE: The Filter That Cancels a LEFT JOINLab Locked
  5. RIGHT and FULL OUTER JOIN: Reconciling Two ListsLab Locked
  6. One-to-Many Joins: Fan-Out and Double CountingLab Locked
  7. Joining Three Tables: Following the Key PathLab Locked
  8. Self-Joins: A Table Joined to ItselfLab Locked
  9. CROSS JOIN and Range JoinsLab Locked
  10. Scalar Subqueries: One Value Inside Another QueryLab Locked
  11. IN and NOT IN Subqueries (and the NULL Trap)Lab Locked
  12. Correlated Subqueries: Comparing Each Row With Its Own GroupLab Locked
  13. EXISTS and NOT EXISTS: Semi-Joins and Anti-JoinsLab Locked
  14. Derived Tables: Subqueries in FROMLab Locked
  15. CTEs: Building a Query Step by Step With WITHLab Locked
  16. CASE Expressions and Conditional AggregationLab Locked
  17. UNION vs UNION ALL: Stacking ResultsLab Locked
  18. INTERSECT and EXCEPT: Comparing Two ResultsLab Locked
  19. Dates in Queries: Ranges, Differences and DialectsLab Locked
  20. Final Project: A Customer Segment ReportLab Locked