Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
latingntlman
Yak Posting Veteran
96 Posts |
Posted - 2008-08-18 : 09:36:38
|
I need to have two tables that get their data from a stored proc. Here's what I'm trying to accomplish:One table needs to include members added in the last seven days.Table two needs to include members who bought product in the last seven days regardless of when they were added. This means that there may a member(s) in both tables at times, which is expected. MY sql code works and it passes all those added in the last seven days or who purchased in the last seven days.My challenge is how do I make sure those added last seven days but not purchased in last seven days show in table one or those added in last seven days and bought in last seven days show up in both. Also those not added in last seven days but bought in last seven days to show up in table two, and again those who bought in last seven days and added in last seven days to show up in both tables.Is there a way to set up filters in RS when the data source is a stored proc? Or do I create two stored procs that splits the data and have two data sources connecting to the report? if so, then how?Any light on this will be appreciated.thx,John |
|
cardgunner
326 Posts |
Posted - 2008-08-18 : 10:04:42
|
What about creating a new dataset?CardGunner |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-18 : 10:18:43
|
quote: Originally posted by latingntlman I need to have two tables that get their data from a stored proc. Here's what I'm trying to accomplish:One table needs to include members added in the last seven days.Table two needs to include members who bought product in the last seven days regardless of when they were added. This means that there may a member(s) in both tables at times, which is expected. MY sql code works and it passes all those added in the last seven days or who purchased in the last seven days.My challenge is how do I make sure those added last seven days but not purchased in last seven days show in table one or those added in last seven days and bought in last seven days show up in both. Also those not added in last seven days but bought in last seven days to show up in table two, and again those who bought in last seven days and added in last seven days to show up in both tables.Is there a way to set up filters in RS when the data source is a stored proc? Or do I create two stored procs that splits the data and have two data sources connecting to the report? if so, then how?Any light on this will be appreciated.thx,John
you can set up filters in both data tab for dataset properties and also inside the respective tables as table filter. So either give the filter in dataset or inside your tables. |
|
|
|
|
|