The analytics page lists every user with the number of orders they have placed. Users who have never ordered must still appear, with a count of 0.
Write a query returning users.id, users.name and the number of their orders as order_count, using a LEFT JOIN and GROUP BY.
id, name, order_countLEFT JOIN keeps every row of the left table even without a match.
Count a column of the orders table: COUNT(*) would count the NULL-filled row as 1.
No results yet
Run your code to check it against the examples, or submit to run every test.