mtbinpa
Active Member
I'm not a JDE Financials guy but am trying to find the correlation between the F0911 and F03B14 via SQL. I want to get the Receipt information as well as the Voucher information for specific customers. I am doing a LEFT OUTER JOIN like this:
FROM
F0911 T1
LEFT OUTER JOIN F03B14 T2 ON
T1.GLICU = T2.RZICU AND
T1.GLAN8 = T2.RZAN8
I need to do the LEFT OUTER in order to get the Voucher information from the F0911 since that information is not stored in the F03B14. For some reason, when I do a DISTINCT, it is omitting one of my expected lines, but if I don't do the DISTINCT in there it duplicates or triplicates the records. Hmmm, so I am wondering if there is a true join between these tables or if I need to use an additional table or just fix my JOIN. I hope this is enough information. Thanks in advance for your help!!
FROM
F0911 T1
LEFT OUTER JOIN F03B14 T2 ON
T1.GLICU = T2.RZICU AND
T1.GLAN8 = T2.RZAN8
I need to do the LEFT OUTER in order to get the Voucher information from the F0911 since that information is not stored in the F03B14. For some reason, when I do a DISTINCT, it is omitting one of my expected lines, but if I don't do the DISTINCT in there it duplicates or triplicates the records. Hmmm, so I am wondering if there is a true join between these tables or if I need to use an additional table or just fix my JOIN. I hope this is enough information. Thanks in advance for your help!!