need to add col from third table of join

i need to add a col from the third table I need ad.IARCC9                                      

it's not displaying this col. i


select ItQty#,IhDocd,ItPRT# from pklib.Fileout1 a      
ad.IARCC9 from astdta.audia                            
             
                                                       
b.CtCom#= a.ItCom# and                                  
                                                       
b.CtCtr# = ' '     and                                  
                                                       
b.CtPrt# =a.ItPrt#                                      
join astdta.Audia ad                                    
on ad.IAprt# = a.ItPrt#                                
where ad.IARCC9 > ''                                    
order by ad.IARCC9
Philky101Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
you have 2 FROM clause and you don't have the definition for alias B
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Philky101Author Commented:
can you explain me\ this further. This is getting me output needed. But need the third\ table col on the output.
0
Éric MoreauSenior .Net ConsultantCommented:
Can You show your working query with 2 tables and the structure of the 3rd table?
0
sameer2010Commented:
The query is unclear, but try this
select ItQty#,IhDocd,ItPRT#, b.IARCC9 from pklib.Fileout1 a
astdta.audia b, third_table c 
 where c.CtCom#= a.ItCom#
and c.CtCtr# = ' '
and c.CtPrt# =a.ItPrt#
and b.IAprt# = a.ItPrt#                                
and b.IARCC9 > ''
order by b.IARCC9 

Open in new window

0
Anthony PerkinsCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.