I have a scenario like this in ssis – I have got two different inputs, out of which one is coming from a lookup nomatch output. The other input is actually a derived column that is takn from a single row single column result in an oledb source using sql query. The problem is that I need to join these two inputs and make it a single dataset to further push the data to the crm destination(Cozyroc).
I know union all just cant do the work since it works on union of rows from different datasets.
Also merge and merge join cannot be used since a common id or key need to be given inorder to join the two datasets, and i have got no such thing.
For example, my first dataset looks like:
usinessid userid name
--------- ------ ----
ret678 435 john
dfgt67 213 sam
and my second dataset is like:
systemid
------------------------
6666-777-kjtyr-213t-ytui
which is extracted using a single column single row query using the oledb source – sql command.
Is there a way to combine these two dataset so that the end result will be something like:
businessid userid name systemid
---------- ------ ---- ------------------------
ret678 435 john 6666-777-kjtyr-213t-ytui
dfgt67 213 sam 6666-777-kjtyr-213t-ytui
I want to do this without using a variable or using a derived column and hardcoding the systemid value.
Pardon my editing…
Any further inputs on this issue will be really helpful.
To combine the two datasets the way you’ve shown, you could use a simple cross join: