Skip to content
Theory · Subqueries · lesson 4 of 11

Correlated subquery

The average menu price is 229.23. But comparing a croissant and a raf with it is not quite fair: food and coffee are priced differently. The owner wants something else: which items cost more than the average of their own category.

In this lesson

  • A subquery that looks at the outer row
  • Filtering by your own group
  • Common mistake
  • Key points