Design logical model of Datawarehouse, Fact Tables and Dimensions Table

孤者浪人 提交于 2020-01-22 02:13:10

问题


Hi i'm newbie in Datawarehousing,For homework ask me realize the logical design, physical and implementation.How would you model this in a Data Warehouse:

i wish design the Data Warehouse which give the answers of statistics relating to a baseball league

For players

in offensive:

•How many times has a batter to bat.

•How many runs scored is.

•How many hits,doubles hit and triples hits.

•How many homeruns did.

•many RBI.

•many base on balls

in Defensive:

▪ How many outs, double play takes

▪ How many assists has

▪ How many errors lead or Pitcher:

▪ How many games has lost

▪ has won many games

▪ How many saved games

▪ How many complete games leads

▪ How many games have started many times it has bleaching

▪ How many hit, double hit received, received triple hit, received homerun

As for the data of the players, it is important that this can be viewed as season, Does anyone know some references on that precise part of DW design ? Any ideas?

Thanks a lot.


回答1:


The first step in designing any data warehouse is to choose a business process. You have already done so by identifying reporting requirements based on baseball statistics, which is already a very well defined process (based on the rules of the game).

The second step is to identify the grain. The grain is the lowest level of detail you need to represent in reporting queries. For your baseball game situation, this would most likely be a pitch.

Next, you would identify the dimensions required to describe your grain. These are all easily identifiable - game, pitcher, batter and played date are obvious ones to start with.

Finally, you would identify the facts that hold measures relating to these dimensions. This encompasses many of the measures from your question, including whether a run was scored - which would be additive across any combination of dimensions, i.e. at inning, game, team, player, or season levels.




回答2:


The IBM Redbooks have a couple of titles that are on point.

  • Data Modeling Techniques for Data Warehousing
  • Dimensional Modeling: In a Business Intelligence Environment


来源:https://stackoverflow.com/questions/6178330/design-logical-model-of-datawarehouse-fact-tables-and-dimensions-table

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