12
Advanced Data Modeling Advanced Data Modeling

Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Embed Size (px)

Citation preview

Page 1: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Advanced Data Modeling Advanced Data Modeling

Page 2: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Heterogeneous MappingHeterogeneous Mapping

Heterogeneous Mapping is the ability of MSTR7 tools to Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names.join on unlike column names.

ORDER_DETAILORDER_DETAIL

Order_ID

Call_Ctr_ID

Order_Date

LU_DATELU_DATE

Date_ID

Month_ID

Quarter_ID

Page 3: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Attribute FormsAttribute Forms

A Form is a logical representation of an Attribute. Every A Form is a logical representation of an Attribute. Every Attribute is defined by at least one Form.Attribute is defined by at least one Form.

Multiple DESC columns can now be displayed under the same Multiple DESC columns can now be displayed under the same attribute.attribute.

Page 4: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Attribute DisplayAttribute Display Different combinations of forms can be Different combinations of forms can be

used to display an attribute on report or used to display an attribute on report or while browsing in Data Explorer.while browsing in Data Explorer.

Page 5: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Simple AttributesSimple Attributes

The Attributes that we have created up to The Attributes that we have created up to this point are simple – each of them is based this point are simple – each of them is based on a real column name in the database.on a real column name in the database.

Page 6: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Derived AttributesDerived Attributes

Derived Attributes are based not only on a single column name, but on Derived Attributes are based not only on a single column name, but on operations between multiple columns or anything meaningful to the operations between multiple columns or anything meaningful to the database.database.

I.e. Customer Age can be defined as “Today”- customer birth date.I.e. Customer Age can be defined as “Today”- customer birth date.

Page 7: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Implied AttributesImplied Attributes

Implied Attributes are not explicitly present in terms of columns Implied Attributes are not explicitly present in terms of columns in the DW, but are implied by the existence of a particular table.in the DW, but are implied by the existence of a particular table.

RUSH_ORDERRUSH_ORDER

Order_ID

Customer_ID

Emp_ID

Order_Date

Order_amt

Rush_Charge

Ship_Charge

Amt_Paid

(Rush_Order)

Y for every row

Page 8: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Implied AttributesImplied Attributes

Example: when an order is rushed, a new record is Example: when an order is rushed, a new record is made in the rush_order table to store extra facts made in the rush_order table to store extra facts associated with rushed orders. The nature of the associated with rushed orders. The nature of the table implies that a certain attribute or fact is table implies that a certain attribute or fact is present, but because it would have the same value present, but because it would have the same value for all rows, the column is not included in the for all rows, the column is not included in the schema. Therefore, the Rush_Order attribute is schema. Therefore, the Rush_Order attribute is defined with a constant “Y” instead of a column defined with a constant “Y” instead of a column definition.definition.

In the past, such attributes required dummy In the past, such attributes required dummy columns or views in the database.columns or views in the database.

Page 9: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Compound AttributesCompound Attributes

A Compound Attribute is an attribute with a compound primary A Compound Attribute is an attribute with a compound primary key (more than one ID column is specified as the ID). More than key (more than one ID column is specified as the ID). More than one ID is needed to uniquely identify the Elements of that one ID is needed to uniquely identify the Elements of that Attribute.Attribute.

Page 10: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Joint Child RelationshipsJoint Child Relationships

Joint Child Relationships exist when one Attribute is a parent of Joint Child Relationships exist when one Attribute is a parent of a combination of children Attributesa combination of children Attributes

Promotion

QuarterItem

Product Time

Promotion

Page 11: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Joint Child RelationshipsJoint Child Relationships

Attributes typically belong to only one hierarchy. However, in Attributes typically belong to only one hierarchy. However, in the example above, the attribute Promotion relates to a the example above, the attribute Promotion relates to a combination of children attributes from different hierarchies. A combination of children attributes from different hierarchies. A promotion ties directly to a particular item at a particular point promotion ties directly to a particular item at a particular point in time (in this case, quarter). So, for example, a lawn mower in time (in this case, quarter). So, for example, a lawn mower (item) might be associated with the Spring Readiness Sale (item) might be associated with the Spring Readiness Sale (promotion) during Q2-2001 (quarter).(promotion) during Q2-2001 (quarter).

Joint Child Relationships must be specified in the Attribute Joint Child Relationships must be specified in the Attribute Editor; they cannot be specified in the Attribute Creation Editor; they cannot be specified in the Attribute Creation Wizard.Wizard.

Page 12: Advanced Data Modeling. Heterogeneous Mapping Heterogeneous Mapping is the ability of MSTR7 tools to join on unlike column names. Heterogeneous Mapping

Steps aheadSteps ahead

Modeling Workshop Part 2.Modeling Workshop Part 2.