Hallo Dirk,

versuche mal das folgende:
Code:
SELECT 'RECHNUNGSBETRAG',  day(rechdat),                  
       sum(case when MyKZ = 'J'                           
                then WAWERTBT                             
                else WAWERTBT * -1                        
                end)                                      
  FROM rechkopf WHERE                                     
  WHERE month(RECHDAT) = 04 and year(rechdat) = 2004      
  GROUP BY day(rechdat)
Birgitta