Quantcast
Viewing all articles
Browse latest Browse all 10045

How to make date dynamic for a report in ssrs using T-sql?

Hi ,

I have a procedure which is something like this

select

TEDW_D_DATE_TYPE_1.DATE_SHORT,TEDW_F_EMAIL_CAPTURE.ORDERS_BOUNCE

from

EDW.Calendar.TEDW_D_DATE_TYPE_1

full

outerjoinEDW.Retail.TEDW_F_EMAIL_CAPTURE

on

TEDW_F_EMAIL_CAPTURE.DATE_KEY= TEDW_D_DATE_TYPE_1.DATE_KEY

where

TEDW_D_DATE_TYPE_1.DATE_SHORTbetween'2012-08-01'and'2012-08-30'

Now i want to use this procedure in a report and if the user picks a particular date then he must be able to see all the values for the whole month not for the day which can be done by above proc but how can i do it dynamic? how can i allow the user to only select 1 date and show all values for whole month? I cannot use start date and end date as i have to use only 1 date.

Can somebody help me with this,

Thanks.


Viewing all articles
Browse latest Browse all 10045

Trending Articles