Is there a SQL query I can do that will generate a linear sequence like
1, 2, 3, 4, 5, 6, 7 ... x+1
or
2, 7, 12, 17, 22 ...
In Oracle you can do:
select ROWNUM linear_sequence from dual CONNECT BY LEVEL <= x;
where x is the end of the sequence.