We’ve learned so much already and it’s time to level up In this lesson we’ll learn one of the most powerful SQL concepts and one of the pillars of analytics – subqueries.
You already see that our queries are growing and becoming more and more complex (later in the course we’ll write 50 line long queries and even more). To handle this complexity it’s a very good approach to split a big query into subqueries. You may have heard of the expression “Eat an elephant: one bite at a time”, subqueries represent this principle in SQL.
Subquery example
So...