For finding out in which table the row is located you may try the following
statement:
With x as ( ( Select * from YourTable1
Except
Select * from YourTable2)
Union
( Select * from YourTable2
Except
Select * from YourTable1))
( Select 'YOURTABLE1', x.* From x
Intersect
Select 'YOURTABLE1', a.* From YourTable1 a)
Union
( Select 'YOURTABLE2', x.* From x
Intersect
Select 'YOURTABLE'2, b.* From ADRESSEX b)
Order By Key1, Key2 ... KeyN, 1
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von
Chris Pando
Gesendet: Monday, 09.2 2015 05:55
An: MIDRANGE-L@xxxxxxxxxxxx
Betreff: finding differences between 2 files
Not an SQL solution, but I have an RPG utility that will print out the
differences between two files with identical layouts and a unique key:
http://www.brilligware.com/cp1030.html
Chris
chris@xxxxxxxxx
www.brilligware.com - the home of MineSweeper5250
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.