MySQL Forums
Forum List  »  Newbie

Re: Delete rows within a given time interval
Posted by: Peter Brawley
Date: May 17, 2018 01:30PM

SQL is a very limited computer language, most row-to-row comparison problems are more efficiently implemented in your app language: suck up the dataset into an array and do the logic there.

If you really want to do it SQL, there are duplicate times per serialnum & serialcode, so you'll need t provide criteria for selecting the row to keep per 30 mins.



Edited 1 time(s). Last edit at 05/17/2018 01:33PM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
Re: Delete rows within a given time interval
May 17, 2018 01:30PM


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.