Sorry there was a typo in my previous post:
Again the revised SQL 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 YourTable2 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!"
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: finding differences between 2 files, (continued)
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.