Revenue by Country

easy
Unit 1 · Joins & Aggregation0/3 to milestone

Write a query returning country and revenue (sum of order totals) for every country that has at least one order, sorted by revenue descending.

Schema

customers(id, name, country, signup_date)
orders(id, customer_id, order_date, total)
#joins#group-by1 visible + 1 hidden tests
query.sql · SQLite
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Revenue by Country · TechGradify