admin管理员组文章数量:1353303
Is there a best practice to handle OLTP lookup tables( code-name-description tables) when converting to Dimension? Eg, the ACCOUNT table in OLTP has almost 15 codes (Eg: TRADING_PLATFORM_CD, SERVICE_MODEL_CD etc.. ) . Some of the columns have corresponding code-name-description lookup tables available in OLTP, while some of the columns have their names and descriptions available with business. I could think of 4 options , but wondering which is the correct method?
option 1- Bring Lookup table as-is from OLTP into warehouse. Do not create separate Dims. Leave only CD in ACCOUNT_DIM. Expose the NAME and DESC in the views by joining REF and ACCOUNT_DIM using CD column
option 2- For every CD, add NAME and DESC in the ACCOUNT_DIM itself
Option 3- Create each CD as a separate DIM table. Put those Dim Keys into ACCOUNT_DIM (snowflaking?), or via a fact
Option 4- Create single catch-all Dim to hold all types of Codes , names and description
Any guidance will be appreciated Thanks Sunil
Is there a best practice to handle OLTP lookup tables( code-name-description tables) when converting to Dimension? Eg, the ACCOUNT table in OLTP has almost 15 codes (Eg: TRADING_PLATFORM_CD, SERVICE_MODEL_CD etc.. ) . Some of the columns have corresponding code-name-description lookup tables available in OLTP, while some of the columns have their names and descriptions available with business. I could think of 4 options , but wondering which is the correct method?
option 1- Bring Lookup table as-is from OLTP into warehouse. Do not create separate Dims. Leave only CD in ACCOUNT_DIM. Expose the NAME and DESC in the views by joining REF and ACCOUNT_DIM using CD column
option 2- For every CD, add NAME and DESC in the ACCOUNT_DIM itself
Option 3- Create each CD as a separate DIM table. Put those Dim Keys into ACCOUNT_DIM (snowflaking?), or via a fact
Option 4- Create single catch-all Dim to hold all types of Codes , names and description
Any guidance will be appreciated Thanks Sunil
Share Improve this question edited Mar 31 at 19:43 NickW 9,8382 gold badges8 silver badges24 bronze badges asked Mar 31 at 18:27 SunilSunil 595 bronze badges1 Answer
Reset to default 1Denormalise the reference data into the Dims - which is what I think you have as option 2
本文标签: Dimensional Modeling How to handle CodeNameDescription lookup tableStack Overflow
版权声明:本文标题:Dimensional Modeling- How to handle Code-Name-Description lookup table - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743927728a2563273.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论