sql server reporting services:
Thanks Jan, but that is not exactly touching my issue: "titles" and "sales"
are different tables. In my opinion a union is isn't a proper way to do
this. Anyway...
My central idea behind my question is: If I could solve this problem, I
would be more flexible in using data for several reports. For example, I 've
got one special view for clients (supposing there are more tables to build
this view) , a second special view for sales and many more views for other
matters. In every report where I now have to use client-data, I can take the
same view. Otherwise I have to change every select statement for every
special report if anything changes...
[quoted text, click to view] >> Its a thing of strategy, do you see ?
jack
"Jan Pieter Posthuma" <jan-pieterp.at.avanade.com> schrieb im Newsbeitrag
news:BF29CB19-BD2C-4218-A9AE-F970A4D6E011@microsoft.com...
[quoted text, click to view] > Hi,
>
> It isn't possiple to link two datasets together or use more than one
> dataset
> on a control.
>
> But what about one dataset which unions both sql queries? And then you can
> use a filter on a control to get only data from a single table.
>
> e.g. the dataset:
> select *, 'Titles' as TableName from pubs.dbo.titles
> UNION
> select *, 'Sales' as TableName from pubs.dbo.sales
>
> and as filter to get titles data:
> =Fields!TableName.Value='Titles'
>
> Be sure that both queries you use to union have the same column names, so
> don't use the *.
>
> --
> | Jan Pieter Posthuma
> --
>
>
> "Jack" wrote:
>
>> Saludos !
>>
>> given two datasets:
>>
>> --------------------------------------------
>> dataset1: select * from pubs.dbo.titles
>> dataset2: select * from pubs.dbo.sales
>> --------------------------------------------
>>
>> My question now is, how can i establish a relation between this two
>> datasets
>> ? And where (data register, layout register) ?
>> Or only with Subreports ?
>>
>> thanks for any suggestion, hint....
>>
>> Jack
>>
>>
>>