I have the following query:
SELECT asunto, MONTH(created_at) as mes, COUNT(turno) as numero
FROM tikets
where id_sucursal = 1 and subasunto = 'Pago' GROUP BY asunto, mes ORDER BY mes ASC
Which throws me the results like this:
I was wondering how I could do the consultation so that it would come out like this or what I would have to do. Thanks for your attention