Session Ready
Exercise

Aggregating revenue, rentals and active customers

The management of MovieNow wants to report key performance indicators (KPIs) for the performance of the company in 2018. They are interested in measuring the financial successes as well as user engagement. Important KPIs are, therefore, the profit coming from movie rentals, the number of movie rentals and the number of active customers.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • First, you need to join movies on renting to include the renting_price from the movies table for each renting record.
  • Use as alias' for the tables m and r respectively.