Hello again!
Still about question 80… We have now 3 solutions to read values from the previous row: Subquery, user variables and with a helper-table + join. There is another feature (at least) which could be used, maybe a more procedural way? (hint, hint)
[Just for fun]
Question 82: More solutions for Q80?
11. July 2010
By plogi in mysql questions
One Response
You must be logged in to post a comment.
Yes, another way of solving the problem is using a stored proecedure. There you can use the traditional approach of reading the rows in order and store the previous values in variables.