Könnte es nicht sein, das dieser einfache Join ohne Subselect oder Common Table Expression das gewünschte Ergebnis liefert?
BirgittaCode:SELECT SNR, Count(Fld1) Anzahl, DAT, TIM FROM BWP Left Outer join BSP on SNR = FD1 WHERE SNR <> ' ' AND DAT >= 0 AND BHND >= 0 GROUP BY SNR , DAT, TIM
Bookmarks