MySQL Forums
Forum List  »  New in 4.1: Subqueries

Re: SubQuery (it's possible)
Posted by: Marco Branco
Date: January 26, 2005 09:58AM

I have the solution

select * from customers where id in (select customer_id from shops where company = '000001');

works perfect.

will select all the customers that made shops on company '000001'.

Thank's anyway

MB

Options: ReplyQuote


Subject
Views
Written By
Posted
4245
January 23, 2005 05:43PM
Re: SubQuery (it's possible)
3003
January 26, 2005 09:58AM


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.