Hallo zusammen,
ich habe folgende Anfrage:
Der DBMS spuckt mir folgende Fehlermeldung raus:
Funktioniert WITH AS nicht mit UNION ALL?
Vielen Dank.
Schöne Grüße aus Rheinland,
Eure Ratna
ich habe folgende Anfrage:
Code:
select person, count(*)
from meinSchema.meineTabelle
group by person
union all
with base as (...)
select person, count(*)
from base
group by person
Der DBMS spuckt mir folgende Fehlermeldung raus:
SQL0104N An unexpected token "as" was found following "union all with base".
Expected tokens may include: "JOIN". SQLSTATE=42601
Funktioniert WITH AS nicht mit UNION ALL?
Vielen Dank.
Schöne Grüße aus Rheinland,
Eure Ratna