ORACLE: ORA-00979: not a GROUP BY expression

AJAX Lauch

Mitglied
Hab hier n Problem wie schon die Überschrift verrät :)

Also ich weiß nicht warum er mekert hab doch alles im SELECT teil was ich im GROUP BY und HAVING teil auch drin hab. In MYSQL hat er keine Probleme damit.
Was hab ich falsch gemacht?


SELECT Count(tabelle1.DOKART) AS ANZAHL, tabelle1.AUSG, tabelle1.EDATUM
FROM tabelle1GROUP BY tabelle1.DOKART HAVING tabelle1.DOKART ='N'
AND SUBSTR(tabelle1.AUSG,0,4) = 2005
AND
(
(instr(tabelle1.AUSG,'-',1,1) != 0
AND SUBSTR(tabelle1.AUSG,instr(tabelle1.AUSG,'-',1,1) + 1,2) >= '04')
OR (instr(tabelle1.AUSG,'-',1,1) = 0
AND SUBSTR(tabelle1.EDATUM,instr(tabelle1.EDATUM,'-',1,1) + 1,2) >= '04')
)
 
Zuletzt bearbeitet:

Neue Beiträge

Zurück