Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Exercises

Instruction

Keep going! You're halfway through!

Exercise

For each year, display the year (production_year, count how many games were released in this year (as the count column), what was the average cost of production (as the avg_cost column), and what was their average revenue (as the avg_revenue column).

Stuck? Here's a hint!

You'll need four columns:

  production_year,
  COUNT(...) AS count,
  AVG(...) AS avg_cost,
  AVG(...) AS avg_revenue

And you'll need to group your results by the production_year column:

GROUP BY production_year