MySQL Forums
Forum List  »  PHP

replace in with join
Posted by: Jiri van Eck
Date: June 24, 2007 02:29PM

Hello, i am a newby, can someone tell me how to rewrite the following:

select id,online_datum,aanvraag_datum,naam from campagnes where status='A' and (id not in (select cid from affl_campagnes where affl_id='12345')) order by online_datum desc

to a line without the IN (my provider does not accept IN)

thnxs,

Jiri



Edited 1 time(s). Last edit at 06/24/2007 02:39PM by Jiri van Eck.

Options: ReplyQuote


Subject
Written By
Posted
replace in with join
June 24, 2007 02:29PM
June 25, 2007 09:45AM
June 25, 2007 02:02PM
June 25, 2007 09:39PM
June 27, 2007 02:31AM


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.