Monthly fuel sales
Petronas wants fuel sales rolled up by month.
From the sales table, return the first day of each month as month_start (a date) and the total amount for that month as total_sales.
Schema
▸sales
| id | INT |
| sale_date | DATE |
| amount | NUMERIC(10,2) |
Basic
The example input, expected output, and walkthrough for this question unlock with a Basic plan.
Basic
The reference solution and walkthrough for this question unlock with a Basic plan.
See Basic plansRM 25/mo · cancel anytime
Basic
This is a Basic question
Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.
RM 25/mo · cancel anytime