Hello,
I have a table ABC with two columns NAME and SEQUENCE. The valid values of sequence are from 1..50.
The table may not have all the Sequence number. For example following is the data in my table..
NAME SEQUENCE
------------------------
Jonh| 5
Amy| 1
Suresh| 3
I need a SQL to get the data like
NAME SEQUENCE
------------------------
Amy| 1
| 2
Suresh| 3
| 4
Jonh | 5
|6
|7
..
..
..
|50
Basically I want to have rows for the sequence numbers which are not present i my table.
I thought of using the following query to generate a sequence and then join, but does not help
I tried something like