Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

learning to use lookup transformation - match value in one of two columns

$
0
0

Im a little new to using lookup transforms.  Been reading a bit, but using two columns is throwing me off.

Have a dataflow with the source having a column I want to use to lookup in a table in another DB.  The match could be in one of two columns in that table.  

If a match is found, I need a different value from the lookup table added to the source flow that is going into the destination.

How can I match on one of two columns in the lookup table, and use a totally different column added to the final input going into the destination ?  

In the Lookup configuration, I can set the lookup operation to replacing the value in the source, but I want EITHER value match from the two columns from the lookup table to go into the value that will go into the destination.

With TSQL - I would use a case statement and compare the source column to BOTH of the lookup table columns.





Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>