I have the following table:
I want to do the sum of sueldo1
and sueldo 2
, use SUM();
but that makes me add the two columns but in all the calendars.
Is there any way to do the sum of both columns but by calendar?
That is, add the 2 columns of the calendar 7 and give me a Total
per calendar. And so on for all calendars or is there an alternative to make those sums from PHP
and avoid doing so in MySQL
?