> Dear all can anyone help me to use NOT IN
>
> or NOT EXISTS  command in mysql ..


You need to use left join the table and look for an inexisting link

select * from table 1
 left join table2 on table2.key1=table1.id
 where whatever
  and table2.id is null


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to