MySQL Forums
Forum List  »  InnoDB

Re: 3 Table Query
Posted by: KimSeong Loh
Date: July 11, 2005 06:01PM

You can try
C left join A on (C.accountCode=A.aCode and A.Tcode=0)
left join B on(C.accountCode=B.aCode and B.Tcode=0)

Is the ACode a primay key of unique key in table A and B, if not you will get multiple matches, and that may not be what you want.

Options: ReplyQuote


Subject
Views
Written By
Posted
2978
July 11, 2005 02:13AM
2138
July 11, 2005 05:39AM
Re: 3 Table Query
2068
July 11, 2005 06:01PM
2070
July 11, 2005 06:35PM
2111
July 11, 2005 06:57PM


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.