× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



THarteau@xxxxxxxxxxxxxxxxxx wrote:
Hi,
I was wondering if there is a 'modern' way of doing matching
records. MR seems to be the way to write the program I am designing, but
it has been years since I did one. I am building two work files, and
need
to print any differences, or if there are any missing in either file.
Just
wondering if there was a better way.

From: Scott Klement

An exception join, perhaps?

Nope. An exception join returns rows in the primary without a match in the
secondary, but will skip records in the secondary without a match in the
primary. SQL always drives off the primary (leftmost) file.

Since Terri needs differences (rows exist in both files) and exceptions
(rows in either one file or the other), I think she'd most likely need an
OUTER JOIN with a UNION to an EXCEPTION JOIN with the file order reversed.

MR is actually the simpler solution, provided you remember how to code it
<grin>.

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.