Hi All,
I am using sql server 2008 r2.
In SSRS report, I have 2 parameters. one is Month and other is Year.
I need to link this with my SQL query. In table, i have columns named as Price , from date and to date.
When the user selects a month and year from report parameters,
if (user selected month and year) is between ( from date and to date )
then i need to display the price which falls between from date and to date.
I have tried using DatePart(Month, FromDate) and DatePart(Month , ToDate) and DatePart(Year, FromDate) and DatePart(Year, ToDate) in query.
However, yet i am not getting desired results based on the parameters.
Any help is highly appreciated.
Thanks in advance, Akhila Vasishta