SSIS Business Intelligence LookUp task Visual studio Get Data

痴心易碎 提交于 2019-12-13 06:12:03

问题


please i need your help, i have stagging table on-Air(*BTS*,Ville,region,zone) and table dim_BTS(*BTS*,BSC,statut,date_BTS,classe,idVille) dimAxeGeographi(idVille,ville,zmr,region)

and i need yor help how to get idVille from dimAxeGeographi and put it on dim_BTS by using attribute BTS from stagging table on SSIS on Business Intelligence but i don't know how to get Id-ville.


回答1:


Assumption: in table dimAxeGeographi, ville and region together make the record unique.

Try this:

Merge dim_BTS AS Target using
(
    SELECT A.BTS, D.idVille
    FROM Air A
    INNER JOIN dimAxeGeographi D 
        ON A.Ville = D.Ville AND A.Region = D. Region
) AS Source ON Source.BTS = Target.BTS

WHEN MATCHED THEN
UPDATE
SET Target.idVille = Source.idVille
;

NOTE: It would be helpful if you can post sample data and expected result.



来源:https://stackoverflow.com/questions/17710051/ssis-business-intelligence-lookup-task-visual-studio-get-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!