|
Don't know if this technique has ever been posted here or not, but I
ran across the technique last night on a DB2 LUW forum and it works
just fine on DB2 for IBM i...
If you have a need to compare the contents of two tables to determine
if they match, here's the easy way.
select * from table1
EXCEPT
select * from table2
<<SNIP>>
I was doing it on 7.1, but according to the manual, EXCEPT is
supported starting at v5r4.
Caveats: the tables must have a primary key; or be a uniquely keyed
physical.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.