Is there a way to expand table 1 into table 2? It is to output each integer between start_no and end_no as a seq_no field, and take the other fields of the original table to form a new table (table 2).
Table 1:
date source market channel_no start_no end_no err_type
---------- ------ ------ ---------- -------- ------ --------
2022.06.01 src55 SZ 2011 565663 565665 1
2022.06.01 src55 SZ 2011 565918 565920 1
2022.06.01 src55 SZ 2011 566010 566012 1
2022.06.01 src55 SZ 2011 566363 566365 1
2022.06.01 src55 SZ 2011 566512 566513 1
Table 2:
date source market channel_no err_type seq_no
---------- ------ ------ ---------- -------- ------
2022.06.01 src55 SZ 2011 1 565663
2022.06.01 src55 SZ 2011 1 565664
2022.06.01 src55 SZ 2011 1 565665
2022.06.01 src55 SZ 2011 1 565918
2022.06.01 src55 SZ 2011 1 565919
2022.06.01 src55 SZ 2011 1 565920
2022.06.01 src55 SZ 2011 1 566010
2022.06.01 src55 SZ 2011 1 566011
2022.06.01 src55 SZ 2011 1 566012
2022.06.01 src55 SZ 2011 1 566363
2022.06.01 src55 SZ 2011 1 566364
2022.06.01 src55 SZ 2011 1 566365
2022.06.01 src55 SZ 2011 1 566512
2022.06.01 src55 SZ 2011 1 566513