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

Lookup Transformation with where-clause conditions asscociated from source table

$
0
0

How to use Lookup Transformation to realize the following T-SQL?

select a.id, a.YrMon, b.StartMon, b.EndMon

from TABLEa a

left join TABLEb b

on a.id = b.id

and a.YrMon between b.StartMon and b.EndMon

In DFT (data flow), source table TABLEa has a column YrMon and id, the lookup table TABLEb, how to set up to include the other join condition:

a.YrMon between b.StartMon and b.EndMon

Thanks!


surfbidn


Viewing all articles
Browse latest Browse all 24688

Trending Articles