Here is how dataset looks like
Key1 Start End
A 5 8
B 2 4
I am looking for output as shown below where a new column "Num" is created and it should start with respective row value of "Start" and increment by +1 and stop at "End" number. The final result should be able to save in a new table.
Key1 Num Start End
A 5 5 8
A 6 5 8
A 7 5 8
A 8 5 8
B 2 2 4
B 3 2 4
B 4 2 4
I could find some solutions in Sqlserver but not in SQLite.