I know it is possible to filter a query from a list as in Select * from table where ID in (1,2,3,4)
, but is it possible to select from a list?
For example, I'd like to select date and offset date from a list of offset hours:
select sysdate, sysdate - offset / 24 as offsetSysdate
from dual, (1,2,3,4) as offset
I know I can create a table and populate it with values to do this, but I was looking for a way to do it on the fly directly in the query.