Gabriel Alessandria <[EMAIL PROTECTED]> wrote:
> There exists the possibility of doing a SELECT where the list of IN()
clause
> is the result of another select ?
>
> Like this for example
>
>
> Select Number from Phone where Number not in
> (
> SELECT Number from Vendor, Clients
> where Vendor.Number=Clients.Number
> )

Yes, subqueries are supported from version 4.1. If you have version older than 4.1 you 
can rewrite your query using LEFT JOIN:
        http://www.mysql.com/doc/en/Rewriting_subqueries.html



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to