Ciao,
non ho creato io la tabella e non posso toccarla..
Ho ripristinato il Group by e l'ultima versione della query è questa.
Questo è l'errore che ottengocodice:select datepart(mm,CONVERT(date,DATF,105)) as mese, datename(month,CONVERT(date,DATF,105)) as miadata,SUM(CAST(NETTO AS INT)) AS quanti from MOVIMENTI where (CAUS IN ('01', '02','65')) AND (MOVIMENTI.SMAL = '900000.0002')group by DATEname (month,convert(date,datf,105)) order by datepart(mm,CONVERT(date,DATF,105))
Column 'MOVIMENTI.DATF' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Grazie cmq