Hello,
first - i'm not very good in SQL - and with google i could figure out a solution on this...
i have the following script:
SQL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | withusrShowAuftragsbestandCTEas(selectconvert(date,Convert(varchar,Monat)+'-'+Convert(varchar,Tag)+'-'+Convert(varchar,Jahr))asDuedate,Netto,ZielgebietfromusrShowAuftragsbestand)selectDuedate,round(SUM(Netto),2)asNettoSumme,ZielgebietfromusrShowAuftragsbestandCTEWHEREDATEDIFF(DAY,Duedate,GETDATE())<14groupbyDuedate,ZielgebietorderbyDuedatedesc,Zielgebiet |

but now i dont know how to go further and get the sum from one day / date - over all groups (Zielgebiete).
How can i get this sum over the groups?
thanks for any help