MySQL Forums
Forum List  »  PHP

Re: MySQL query question
Posted by: Tom Cooper
Date: February 06, 2009 05:41PM

I believe the following will work:
select id,awardname1,b1.awardcode as code1, awardname2, b2.awardcode as code2, awardname3, b3.awardcode from a left join b as b1 on (a.awardname1 = b1.awardname) left join b as b2 on (a.awardname2 = b2.awardname) left join b b3 on (a.awardname3 = b3.awardname) ;

Options: ReplyQuote


Subject
Written By
Posted
February 06, 2009 03:34PM
Re: MySQL query question
February 06, 2009 05:41PM
March 14, 2009 04:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.