from file1 left outer join (file2 inner join file3 on key2=key3) on key1 = key2

Though honestly I usually would just do
from file 1 left outer join file2 on key1 = key2
left outer join file3 on key2 = key3.

The results would be the same as long as there is an exact correlation
between records in file2 and file3.


On Wed, Sep 24, 2008 at 10:02 AM, Tomasz Skorża <t.skorza@xxxxxxxxxxx> wrote:

I have three files:
File1 - with all user profiles (outfile from DSPUSRPRF)
File2 - with the same user profile (but not every profile from File1 has record in File2), this
file2 has also additional field - "code of divison" i.e. AC
File3 - where code are explain i.e. AC - Accounting (all codes from File2 has explanation in File3)

And now I would like to get report where I receive ALL profile from File1 with name of Division (if
profile doesn't exist in File2 should have BLANK as division)
But I received only this which exist in File2 or nothing. How to connect these three files? Which
subquery will be correct?


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,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

This thread ...


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

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