Link to home
Create AccountLog in
Avatar of Philky101
Philky101

asked on

Need to add a 3rd table to this join

The following code works fine.
But I need to add that we only want part# that have a reporting code that is, are not blank in this table
IAPRT#. IARCC9
and then we need to sort by that as well.

select ItQty#,IhDocd,ItPRT# from pklib.Fileout1 a        
                     join astdta.icEct1 b on              
b.CtCom#= a.ItCom# and                                    
                                                         
b.CtCtr# = ' '     and                                    
                                                         
b.CtPrt# =a.ItPrt#                                        
order by a.ItPRT#
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Do you want to provide us some details regarding this 3rd table?
ASKER CERTIFIED SOLUTION
Avatar of PortletPaul
PortletPaul
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer