I have a query that works just as I want it to.  I used the RTVQMQRY 
command to retrieve the source and then I modified the source using 
interactive SQL to try to "mimic" the Query in SQL.  I am *close* but 
not quite there.
I used "Matched Records with Primary File" in the query because I want 
the missing records to show up as blanks in the query output.  The query 
produces the desired results. When I run the SQL, I get the same 
records, sans the "missing" ones.  It is a complex query joining 5 
files, some of which have 5 key fields to join.  What I can't figure out 
is what the join syntax is in the query.  It must be using an outer join 
but are all the 5 files using left outer join syntax?  e.g
select (fields)
from
file 1
left outer join file2 on
(file1 and file2 field selections)
left outer join file3 on
(file1 and file3 field selections)'
left outer join file 4 on
(file 1 and file4 field selections)
where (field selections)
order by (whatever)
Any way to see what Query/400 is using?
Thanks,
Pete Helgren
As an Amazon Associate we earn from qualifying purchases.
	
 
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.