MySQL Forums
Forum List  »  Newbie

Re: Problem with select using several tables
Posted by: Harsha Chaithanya K
Date: August 24, 2004 03:03AM

try using joins.

select * from table1 t1
left join table2 t2 on t1.id = t2.rel
where t2.rel = somevalue
and t1.active = 1

Hope this helps you.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problem with select using several tables
August 24, 2004 03:03AM


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.