MySQL Forums
Forum List  »  Newbie

Re: DELETE rows?
Posted by: Chad Bourque
Date: June 16, 2010 07:44AM

Shah,

If you still have the original data set, you can run just the select portion of that query against it. Those are the rows that will be deleted by the full query.

With that query, even if you had some rows with triplicates (or more), only the row with the max number would be deleted. The only way for multiple rows with the same id to be deleted would be to have multiple rows with matching id and number AND that number be the max number for that id.

HTH,
Chad

Options: ReplyQuote


Subject
Written By
Posted
June 15, 2010 08:53PM
June 15, 2010 10:38PM
June 15, 2010 11:23PM
June 16, 2010 02:29AM
Re: DELETE rows?
June 16, 2010 07:44AM
June 17, 2010 10:07PM
June 17, 2010 11:40PM
June 18, 2010 09:43AM
June 18, 2010 10:26AM
June 19, 2010 07:26AM


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.