Troels Arvin wrote:
Quote:
Hello,
>
While looking into a particular SQL statement which seemed to put the
database under pressure, I found the following construct which is new to
me:
>
SELECT ...
FROM ...
OUTER UNION
SELECT ...
FROM ...
>
The statement was seen in the "Dynamic SQL statement text" part of "GET
SNAPSHOT FOR APPLICATION". In other words: The construct was accepted by
DB2. OUTER UNION doesn't seem to part of the SQL standard, and I can't
find documentation for it in DB2's documentation. Is this a documentation
defect, or is it simply me who's not good enough at searching the docs?
>
(The statement was issued from a SAS script, probably part of a SAS "proc
sql" section. OUTER UNION is documented in SAS' docs. I want to make sure
that SAS and DB2 agree on what's going on.)
>
|
db2 =connect to test;
Database Connection Information
Database server = DB2/NT 9.X.0
SQL authorization ID = SRIELAU
Local database alias = TEST
db2 =values 1 outer union values 1;
SQL0104N An unexpected token "outer" was found following "values 1 ".
Expected tokens may include: "<space>". SQLSTATE=42601
db2 =values 1 union values 1;
1
-----------
1
1 record(s) selected.
Which platform are you on? I have never heard of it. What would be it's
semantics?
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab