Hello all.....
I got a doubt whether we can use Lookup as an inner join.
If I have duplicate keys in lookup source....can I get the duplicate rows also into the destination.
Ex:
source:
c1 c2 c3
1 a1 b1
2 a2 b2
3 a3 b3
lookup table:
c1 c4 c5
1 c1 d1
2 c21 c22
2 c23 c24
3 c3 c3
noe the result should be:
c1 c2 c3 c4 c5
-- -- -- -- --
1 a1 b1 c1 d1
2 a2 b2 c21 c22
2 a2 b2 c23 c24
3 a3 b3 c3 c3
in msdn I read the look up will get the first match.....is it possible to get all matches?
Thank you
No, you can't get multiple matches from the Lookup. You should use the Merge Join component to do that.|||
Dear friend,
use the merge Join, and you can specify LEFT, INNER or RIGHT JOIN!
Helped?
regards!
|||yes I know about the merge join componant. but for that I need to sort the data before joining. and till now I used my source table which has 6 million records only once and with the multicast I generated all the neccessary fact tables. and to generated one more facts table I need to make an inner join with another table. that's why I asked whether there is any setting where we can get all the matches. I can also use the merge join here....and to sort this 6 M records in the middle of the package is taking all the RAM and time.
I can't sort them in the starting because this table is alredy sorted with some other columns for merge join
input.
anyways thank you for your help. If it's not possible with lookup...I need to do something else. I think I need to read the table again with needed keys sorted.
Thank you.
No comments:
Post a Comment