SSIS Lookup data update -
i have created ssis package reads data csv file , loads table1 . other data flow tasks on table 1 .table1 has columns x , y, z, ,b . table 2 has columns , b ,y,z lookup done based on columns y , z . based on column y , z , picking , b table 1 , updating table 2 . problem data gets updated multiple rows of data thats 1 without updation , 1 after updation .
i can provide more clear explanation if needed .
fleshing out nick's suggestion, rid of second data flow (the 1 table 2 table 2).
after first dataflow populates table 1, execute sql task performs update on table 2, , joins table 1 new data.
edit in response comment:
you need use clause match rows uniquely. apparently model_cd
not unique column in jlrmodel_dims
. if cannot make clause unique because of relationship between 2 tables, need select either aggregate [length (cm)]
min()
, max()
etc, or need use top 1
, 1 row subquery.
Comments
Post a Comment