Find Revenue by Department
MediumUnlock detailed company stats for this questionUpgrade
You are given the following tables:
orders table:
departments table:
customers table:
Order the departments from highest to lowest revenue in the last 12 months. Your output should have the following columns: department_name, total_revenue