"Curley, Thomas" <[EMAIL PROTECTED]> wrote:
> 
> Any idea why this query will not work in 4.0.13
> 
> select batch_id from BATCH
> where NOT EXISTS (select 1 from TXN where TXN.batch_id =3D BATCH.batch_id=
> )
> 
> You have an error in your SQL syntax near 'EXISTS (select * from TXN wher=
> e TXN.batch_id =3D BATCH.batch_id)' at line 1
> 

NOT EXISTS is supported from v4.1.0. 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/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [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