UNION of 2 data sets or 2 values for a Parameter [message #1787392] |
Thu, 24 May 2018 11:21  |
Eclipse User |
|
|
|
Hi
I'm trying to create a UNION of 2 data sets both are same structure. Or create a data set that I can put 2 values on "Parameter", because using parameter value seems much faster than filter. (I'm I correct here?)
I know I can create an outer join and merge columns in computed columns but it is not very efficient because I want to UNION more than 4 data sets.
I have read something about scripted data sets , how do they work?
Thanks
|
|
|
|
|
Re: UNION of 2 data sets or 2 values for a Parameter [message #1787408 is a reply to message #1787398] |
Thu, 24 May 2018 18:08  |
Eclipse User |
|
|
|
In order for you to have a join between the data sets, there has to be a common column and value they share. It sounds like you want to use a UNION query, which will resemble:
Select ID, Name, Date1, Date2, String1, String2 from Table1
UNION ALL
Select ID, Name, Date1, Date2, String1, String2 from Table2
UNION ALL
Select ID, Name, Date1, Date2, String1, String2 from Table3
Unless the Name value appears in all of your data sets - is that the case?
|
|
|
Powered by
FUDForum. Page generated in 0.03184 seconds