gjsaturday
Technical User
I have a query that gives me a list of dates (3 columns, id, from date, and to date). I want to incorporate this query result using between in the where clause. Is this possible?
i.e.
Query results
id from to
1 1/1/05 1/3/05
2 1/2/05 1/5/05
etc...
I want to select the corresponding data in another table
for id 1 for dates between 1/1/05 and 1/3/05 and
for id 2 for dates between 1/2/05 and 1/5/05, etc...
i.e.
Query results
id from to
1 1/1/05 1/3/05
2 1/2/05 1/5/05
etc...
I want to select the corresponding data in another table
for id 1 for dates between 1/1/05 and 1/3/05 and
for id 2 for dates between 1/2/05 and 1/5/05, etc...