Prova questo (non testato).
codice:Select case when tipo = 'Assegni' then tipo else 'altri' end case as my_tipo, SUM(IMPORTO), COUNT(*) AS MOVIMENTI From tabella group by my_tipo
Prova questo (non testato).
codice:Select case when tipo = 'Assegni' then tipo else 'altri' end case as my_tipo, SUM(IMPORTO), COUNT(*) AS MOVIMENTI From tabella group by my_tipo
Ridatemi i miei 1000 posts persi !!!!
Non serve a nulla ottimizzare qualcosa che non funziona.
Cerco il manuale dell'Olivetti LOGOS 80B - www.emmella.fr