Using MS SQL SERVER 2008, Report Builder 3.0. have created a query containing 2 datasets, Dataset1 shows the arrears balance and date for one week, ie 30.06.2013, Dataset2 shows the arrears balance and date for another week, ie 07.07.2013, this will allow users to check if arrears are going up or down. The query for both datasets used the same table that contains 3 elements, the TENALTKEY is the unique identifier for each addresss, the ARRSDATE is the arrears date, and the ARRBAL is the arrears balance. I need some advice in how I can create 2 parameters that will allow users to choose what dates they want to view, ie this week and last week dates. I am new to sql reporting so simple examples and explanations would be appreciated, thank you Dataset1 =SELECT stagingarrsbal.tenaltkey ,stagingarrsbal.arrsdate ,stagingarrsbal.arrbalFROM stagingarrsbal INNER JOIN stagingTenancy ON stagingarrsbal.tenaltkey = stagingTenancy.tenaltkeyWHERE stagingarrsbal.arrsdate = N'2013-06-30T00:00:00' AND stagingarrsbal.arrbal > 0 AND stagingTenancy.tenind != N'F'Dataset2=SELECT stagingarrsbal.tenaltkey ,stagingarrsbal.arrsdate ,stagingarrsbal.arrbalFROM stagingarrsbal INNER JOIN stagingTenancy ON stagingarrsbal.tenaltkey = stagingTenancy.tenaltkeyWHERE stagingarrsbal.arrsdate = N'2013-07-07T00:00:00' AND stagingarrsbal.arrbal > 0 AND stagingTenancy.tenind != N'F'
↧