I am trying to create a report on a client level which will take information like start_date and end_date from clients table where client_id is specified. After that the idea is to generate table of dates that can warry in range, depending on the clients start_date and end_date.
My question: Is it possible to create table with range of dates in the moment of query execution (dynamically)?
Or: Can you make sequence of numbers like you would do with for loop without previously defining temp table or assistant procedure?
For example (oracle SQL):
SELECT *
FROM ( SELECT 1 A
FROM DUAL ) A
LEFT JOIN ( SELECT 10 B
FROM DUAL ) B ON B.B = A.A + ROWNUM