I have two tables, sales and costs, each with a costs fields, and a date field of type date.
The rest of the fields are not relevant for what I want to do.
I want to take the totals of each month, and display them together.
I am unsure if most of this should be done in SQL, if it must be one or several queries, of if I must manipulate the data in PHP...