I am relatively new to DB2 and having a problem with a simple union
statement.
Running Db2UDB version 8.1.1 on Aix 5.1
The union and union all SQL statements I am running produce the same
results. No duplicates are being eliminated in the union.
To verify, I ran SQL with union statements against system tables.
Same result.
An example:
db2 "select tabschema from syscat.tables
union
select tabschema from sysstat.tables"
db2 "select tabschema from syscat.tables
union all
select tabschema from sysstat.tables"
Both queries produce the same results with duplicates in both.
Both tabschema columns are in the same location (1st) and both are
varchar(128).
What am I doing wrong? Would appreciate any thoughts.
Thanks
Gerry
sn********@sbcglobal.net