简体   繁体   English

带包装的事实表

[英]Fact Table with Package

I's like to ask about etl, and fact table. 我想问一下etl和事实表。

Likely, my fact table's structure is like this : 我的事实表的结构可能像这样:

Id   |    Name   |    QuestionAanswer    | QuestionBanswer   |  QuestionCanswer

I have dimension like this : 我有这样的尺寸:

  1. UserDimension UserDimension
  2. QuestionDimension QuestionDimension
  3. QuestionStaging 问题分期

QuestionStaging data came from csv files, which the name is structurely randomed like A257_IDr, H1_ques1, H2_ques2, H3_ques3. QuestionStaging数据来自csv文件,其名称在结构上是随机的,例如A257_IDr,H1_ques1,H2_ques2,H3_ques3。 ex : 例如:

 A001 | 1 | 2 | 1  |

where A001 -> UserID and 1,2,1 -> User's answer to following question. 其中A001 >用户ID和1,2,1 >用户对以下问题的回答。

QuestionDimension's structure is like: QuestionDimension的结构如下:

SK_Question | ID_Question | IDAnswer

ex. 例如 I have the following question like = 我有以下问题,例如=

How are yours company profit this year? 您的公司今年盈利如何? Bad:Good:Best 不良:良好:最佳

then the data's structure in table is like : 那么表中的数据结构如下:

Sk_Question | IDQuestion | IdAnswer | AnswerDetail
1                   Q1        1             Bad
2                   Q1        1             Good
3                   Q2        1             Best 

My Expectation FactTable is likely to : 我的期望事实表可能会:

SK_USer |Id   |    Name   |    QuestionAanswer    | QuestionBanswer   |  QuestionCanswer
1        A001     Richard             1                    1                     2

OR 要么

1        A001     Richard             Bad                   Bad                 Good

What data flow component or control flow should I used for these situation? 在这种情况下,应使用什么数据流组件或控制流?

您将需要一个平面文件连接管理器,数据流控制组件,平面文件数据源任务以及一个数据目标任务(可能是OLE DB),具体取决于您的数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM