sql - Getting values from previous rows using user-defined variable in MySQL - Stack Overflow
How to get previous record value from MySql Query - Stack Overflow
sql - MySql - How get value in previous row and value in next row? - Stack Overflow