I would like to generate a named table in a WITH clause which will contain this arithmetic progression:
╔══════════╗
║ mynumber ║
╠══════════╣
║ 0 ║
║ 30 ║
║ 60 ║
║ 90 ║
║ 120 ║
║ 150 ║
║ 180 ║
║ 210 ║
╚══════════╝
...based on variable p_maxnumber (here p_maxnumber = 211 for example).
Ideally it would be in a format like:
WITH sequenceTable AS
(SELECT mynumber
FROM ...),
Within the same WITH clause, I would like to use that sequence in downstream derived tables to get data and to be eventually used as a time axis for chart rendering. I have a feeling there is a way to do it using create sequence? Just trying to figure a way to create this still...