MySQL Forums
Forum List  »  General

Re: Help on replacing sub-query with JOIN
Posted by: Gugulethu Ntombela
Date: April 06, 2006 03:28AM

Hi,

Is it possible to use the technique show above if trying to work with update ie.

update threads t set t.threadStatusID = 23
where t.threadStatusID = 5 AND t.threadID IN( SELECT threadID
FROM items
group by threadID
having max(dateCreated) < CURDATE() - INTERVAL 14 DAY );

Options: ReplyQuote


Subject
Written By
Posted
Re: Help on replacing sub-query with JOIN
April 06, 2006 03:28AM


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.