Zitat von
Walter Landwehr:
Hier kommt der Fehler:
Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause).
... cast(sum( iif(Belegart = 'RE', 0) - iif(Belegart = 'GU', 0)) as integer) as summe ...