Link to home
Start Free TrialLog in
Avatar of Fraser_Admin
Fraser_AdminFlag for Canada

asked on

Call Dataset B From Dataset A

I am going to have a dataset which will calculate a date, call it dataset A.  My dataset B which will return all records since that date.

So how can I say something like
where date > datasetb.date or something?
Avatar of MapleMale
MapleMale
Flag of United States of America image

Use a stored procedure and temp tables. Dataset A will be the only data set. Then have a veraible,  @Date or something which you use to store your calculated date. So your where clause would look like this:

Declare @Date datetime

Set @Date = (select mydate field from mytableb where mycolumn = mywhereclause)

Select * from mytable
where date > @Date
** your SP, not Where clause would look like this.... sorry! typo!
Avatar of Fraser_Admin

ASKER

how do i use a sp with reporting services?
ASKER CERTIFIED SOLUTION
Avatar of MapleMale
MapleMale
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial