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 ...
You can specify an increment when creating a sequence :
CREATE SEQUENCE mysequence INCREMENT BY 5 START WITH 2;