Introduction
Exercises
8. Gross profit by company

Instruction

Amazing! Three more to go!

Exercise

For all companies present in the table, show their name and the sum of gross profit over all years. To simplify this problem, assume that the gross profit is revenue - cost of production, show this column as sum. Show the results starting with the company that had the highest gross profit.

Console

Code editor

Result

TableConsole