Hi,
I have a report where user wants to see all the dates between the Start Date and End Date prompt in the report even if there is no data in the table.
i.e. If user enters start date as '20030401' and end date as '20030403'
user wants to see as
04/01/2003 abc 100.00
04/02/2003 abc 0.0
04/03/2003 bcd 50.0
on 04/02/2003 there are no recodrs in table but user wants to see as zero revenue.
Now, I am already using a union between two tables to get the requirements in the sql window of the impromptu.
i.e. select date,
product,
revenue
from data
union
select date,
product,
revenue
from lost_deals
How can I get the above result with all the date.
Your help is appriciated.
Thanks.
DM
I have a report where user wants to see all the dates between the Start Date and End Date prompt in the report even if there is no data in the table.
i.e. If user enters start date as '20030401' and end date as '20030403'
user wants to see as
04/01/2003 abc 100.00
04/02/2003 abc 0.0
04/03/2003 bcd 50.0
on 04/02/2003 there are no recodrs in table but user wants to see as zero revenue.
Now, I am already using a union between two tables to get the requirements in the sql window of the impromptu.
i.e. select date,
product,
revenue
from data
union
select date,
product,
revenue
from lost_deals
How can I get the above result with all the date.
Your help is appriciated.
Thanks.
DM