Patricio Gigoux <[EMAIL PROTECTED]> wrote:
> Hello:
> I have 2 tables
> t1:
> id      age
> 1       7
> 2       6
> 3       7
> 4       8
> 5       9
> 6       4
> 
> t2:
> age
> 7
> 9
> 
> then I like select all in t1  without are in t2, so I need a result as follow
> id      age
> 2       6
> 4       8
> 6       4

SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.age=t2.age WHERE t2.age IS NULL;



-- 
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