Skip to content
Theory · Aggregates and GROUP BY · lesson 3 of 10

GROUP BY

In the previous lesson an aggregate folded the whole stack of menu cards into one note. But the coffee shop's owner needs more: how many items each category has, how much the cheapest tea costs, what the average price of food is.

In this lesson

  • How GROUP BY works
  • The NULL group
  • Several aggregates in one group
  • What SELECT may hold
  • Common mistake
  • Key points