I have a stored procedure that I use for a report on SSRS. They enter in a date range, and DOW. I have it working for all specific DOW, but I also want them to be able to chose all and haven't been able to figure this out yet.
My where statement is:
and my group by is:
How can I set this up to work for the week as a whole?
Thanks in advance,
Jeremy
My where statement is:
Code:
where DATEPART(dw,e.adm_date)LIKE @DOW and
e.adm_date >=@startdate AND e.adm_date<=@ENDdate
and my group by is:
Code:
DATEPART(dw,e.adm_date)
How can I set this up to work for the week as a whole?
Thanks in advance,
Jeremy