Vero me l'ero dimenticato !!!!Originariamente inviato da margherite
Non funziona, manca un group by, almeno dice così:
#1140 - Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause
Quindi : aggiungi -> group by a.codice, a.nome