Only this week, get the SQL Complete Track of 9 courses in a special prize of $330 $89!
Introduction
Exercises

Instruction

Perfect! Here's the last one!

Exercise

We're interested in good games produced between 2000 and 2009. A good game is a game that got rating higher than 6 and was profitable. For each company show company name, its total revenue from good games produced between 2000 and 2009, and the number of good games it produced in this period. Only show companies with good-game revenue over 4 000 000.

Stuck? Here's a hint!

Remember that profitable means that the sum of revenues was higher than the sum of production cost.