MySQL Forums
Forum List  »  General

Re: find dissimilarity of values comparing two adjacent rows
Posted by: Rick James
Date: March 19, 2010 08:09PM

Maybe. Seems like you need the 'table' with @rownum in it twice (self join). That would lead to two identical (or similar) subqueries, which worries me about concurrency issues.

Sure a stored procedure would be a way to go. And it could use @rownum and/or TEMPORARY TABLE.

Options: ReplyQuote




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.