从 reional 表到 fact_buy 的 SSIS 事务
目标:
在表Fact_buy中填写数据。
问题:
我应该如何根据下面的sql代码进行数据事务 SSIS 中的 Fact_buy 表?
下面的源代码间接表明您不能直接在表 Fact_buy 中进行交易,例如您拥有位于表 Dim_store 中的 store_id 数据。
您需要检索 id_dimstore 和 id_diproduct 的数据,以便与 Fact_buy 表进行交易。
我认为,您需要通过使用额外的组件、sql 等进行更多补充,才能完成与 Fact_buy 的交易。
SELECT store_id, product_id, buy Id, date
FROM Store, Buy, Product
Goal:
Fill data in the table Fact_buy.
Problem:
How should I make a data transaction based on the sql code below to
the table Fact_buy in SSIS?
The sourcecode below is indirectly that you cannot make a transaction direcly in the table Fact_buy for instance you have the data of store_id that is located in the table Dim_store.
You need to retrieve data of id_dimstore and id_diproduct in order to make transaction to the table Fact_buy
What I believe is that you need to make more complementory by using additional component, sql etc in order to complete the transaction to the Fact_buy.
SELECT store_id, product_id, buy Id, date
FROM Store, Buy, Product
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找的组件是在数据流任务中找到的“查找”。这将允许您查看 Dim_store,将您的数据与 dim 中的记录进行匹配,并返回 id_dimstore。
您的数据流任务可能如下所示:
除了我所建议的之外,还有其他选择,但是,这是一个非常简单的解决方案。
The component you are looking for is a Look Up found inside a Data Flow Task. This will allow you to look into the Dim_store, match your data to a record in the dim, and return the id_dimstore.
Your data flow task could possibly look like this:
There are alternatives to what I have suggested, however, this is a really simple solution.