Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding another tables column to a left join statement

Status
Not open for further replies.

shefea

Programmer
Jun 20, 2001
9
CH
Hi I have the following query that is working just fine..
SELECT S.EMPL,
S.QUALVDTE,
S.CAT,
S.CACTIAT,
S.CACTIATC,
S.CFUNC,
S.CSFUNC


FROM SUDMP.TCRMQAL S

LEFT JOIN SUDMP.TCRMQAL S1 ON S1.EMPL = S.EMPL
GROUP BY S.EMPL, S.QUALVDTE, S.CAT,S.CACTIAT, S.CACTIATC, S.CFUNC, S.CSFUNC
HAVING S.QUALVDTE = MAX(S1.QUALVDTE)
ORDER BY S.EMPL


I need to a description for S.CAT called CATDESC that is stored in another table how do I do this, where should I place it?

Thanks for any help you can offer me.
Best,
shefea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top