I'm trying to organize a return of my mysql database in months, that is, so that I have groups of the months of donations that the site that I work receives, I tried:
SELECT * , MONTH( 'DataConfirmacao' ) FROM 'doacoes' WHERE Pendente = '1'
I tried to use Group By, but it only returned the first value not all. Table structure: