I have a database with columns id, begin, end, route. Is there a way to select the max or previous rows end column value and insert it as the new row's begin value?
ID Begin End Route
1 1 10 SW
2 10 21 NE
3 21 55 S
What I am trying to do is this...
INSERT INTO log ('id', 'begin', 'end', 'route')
VALUES (DEFAULT, MAX('End"), 'xxx', 'xxx')