Here is my example table:
column_example
10
20
25
50
Here is what I would like:
column_example2
10
5
25
I’m sure this is a simple question, but I haven’t found the answer in the SQLite Syntax web page or via Google.
EDIT: To clarify, the code would likely return the outputs for:
20-10
25-20
50-25
This solution might be slow, but I had to consider the potential gaps between succeeding
rowids:http://sqlfiddle.com/#!5/daeed/1
If it is guaranteed to not have any gaps between
rowids, then you can use this simpler query:http://sqlfiddle.com/#!5/1f906/3