select v.bereich, v.aktenzeichen, convert(char(10),s.buchdat,104) Buchungsdatum, s.tx1 Buchtext1, s.tx2 Buchtext2, s.betrag, s.rest, s.zusatzkont2_fk from bustell s, n_vorgang v where s.bereich = v.bereich and s.mnr = v.muendelnr_alt and ascii(s.typ) = 90 and ascii(s.flag) <> 83 and year(s.buchdat) = year(getdate()) and (s.zusatzkont2_fk = 0 or s.zusatzkont2_fk is null) order by v.bereich, v.aktenzeichen, convert(char(10),s.buchdat,104)