SSIS商业智能查找任务Visual Studio获取数据 [英] SSIS Business Intelligence LookUp task Visual studio Get Data

查看:85
本文介绍了SSIS商业智能查找任务Visual Studio获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮忙,我在($ BTS *,Ville,region,zone)Air(* BTS *,Ville,region,zone)上摆了台桌子
和桌子 dim_BTS(* BTS *,BSC,statut,date_BTS,classe,idVille)dimAxeGeographi(idVille,ville,zmr,region)

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)

我需要您的帮助,如何使用 dimAxeGeographi 获取idVille并将其放在 dim_BTS 上> BTS 在SSIS上的SSIS上的滞销表上显示,但我不知道如何获取 Id-ville

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.

推荐答案

假设:在表dimAxeGeographi中,ville和region共同使记录唯一。

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

尝试一下:

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.

这篇关于SSIS商业智能查找任务Visual Studio获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆