Hi,
I tried the following query and it doesn't work. The 'created' field is in datetime.
select distinct month(created) as created,
sum(cost) as total_cost
from finances
group by created;
I want to display the total cost incurred for each unique month. A simple request yet its confusing to make it work.
Please help
Regards,
wayne