× 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.



Hi Alan

If you add another EXCEPTION JOIN on those 2 columns, your list would be what you want - or you can do a NOT IN - where (fld1, fld2) not in (select fld1, fld2 from 6th file) - that's really the same as EXCEPTION JOIN, though.

Do you need that extra column? What would it contain? I'm guessing some constant label, such as "not in file 6" or 'X' - just add that as a constant to the "field" list.

So what am I missing?   :)

Vern

On 8/12/2020 7:19 AM, Alan Shore via MIDRANGE-L wrote:
Hi everyone
We are at V7r3
I hope that what I am about to ask, makes sense

I have an SQL query using 5 files with joins, exception joins etc, that extracts a number of columns
I would like to add another column, that would use data from two of these columns and look in a sixth file and let me know if there are NO records in that sixth file with those 2 values
I cannot use any data from this sixth file as I am looking to see if a "no record" condition exists

Anyone any ideas as to how to achieve this?

Alan Shore
E-mail : ASHORE@xxxxxxxx<mailto:ASHORE@xxxxxxxx>
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill



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.