Page 1 of 1

Implementation of OR Logic

Posted: Thu Dec 27, 2007 5:26 am
by mc_harsha
Hi,

Can you please provide me info how to implement OR condition in lookups.

Ex:

Select * from table1
where table1.col1 in (select col1 from table2) or
table1.col1 in (select col1 from table3);

Regards,
harsha

Posted: Thu Dec 27, 2007 8:08 am
by Minhajuddin
You can use sparse lookups for this kind of stuff. But, again it would not be good on performance if your input data is huge...

Gotta wait for the gurus

Posted: Thu Dec 27, 2007 10:36 am
by DSguru2B
Build your lookup dataset or if you are using the join stage, in your reference join, use a UNION of col1 from table2 and table3. This way you will have all your values that need to be looked up upon from your input data.

Re: Implementation of OR Logic

Posted: Thu Dec 27, 2007 10:44 am
by challahari
What stages are you using to accomplish your task. We can guide you If you give us info on it.

Thanks.