Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Regarding the sql query

$
0
0

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


Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>