Lecture: Lecture 03 - Data Warehouse Conceptual and Logical Design

Core idea

Some descriptive fields have no useful surrounding hierarchy. The lecture allows small values directly in the fact or combines several low-cardinality fields in a junk dimension. Each row describes a reusable combination of characteristics, not an individual event, and the combination domain must remain manageable.

Explanation and examples

The source calls single-attribute dimensions degenerate and illustrates Shipping Mode, Return Code and Line Order Status. Other dimensional-modeling references can use degenerate more narrowly for identifiers retained in facts; keep the source’s intended meaning explicit.

A descriptive column in a fact is not automatically a measure.

Added junk-dimension example: combination 1=(Standard, None, Delivered), 2=(Express, None, Delivered), 3=(Standard, Damaged, Returned). Many order-line facts can reference the same combination. Shipping mode does not determine status or return code: this is practical grouping, not a hierarchy.

Independent domains of sizes 3, 4 and 5 permit 60 combinations. Many high-cardinality domains can create an enormous table. Consider allowed, observed, unknown and inapplicable combinations explicitly instead of assuming every Cartesian combination occurs.

The source’s Order_ID/Product_ID example is schematic. A real order repeating a product on multiple lines needs a line key or other grain-appropriate identity.

Related: Shared Hierarchies Multiple Edges and Configuration Attributes, Dimensions Measures and Fact Grain, Star Snowflake Schemas and Surrogate Keys.

Source

Elena Baralis, Data warehouse design, Politecnico di Torino, DBMG, local DSTBD_3-DWprogConcLog-EN.pdf, 47 PDF pages. References use PDF page order. The source credits modeling material to Golfarelli and Rizzi, Data warehouse, teoria e pratica della progettazione, McGraw Hill, 2006. Original PDF and figures remain local under the copyright notice. Examples and qualifications marked as added are study explanations. Relevant PDF pages: 45-47.

Exam practice and transfer

Worked scenario

A warehouse designer is deciding how to represent degenerate attributes and junk dimensions for a university reporting system. State the intended grain and business meaning first, then trace one example row or query and explain why the representation preserves the required analysis.

Concrete example

A receipt number may stay directly in a fact table because it has no useful hierarchy. Several small flags such as promotion, delivery and return status can share a junk dimension when their combinations remain manageable.

Retrieval questions

  • Explain Degenerate Attributes and Junk Dimensions in your own words, then identify the problem it prevents in a real data project.
  • Give a small example that would violate the concept, and explain how the violation would distort an analysis or query.
  • Compare this concept with the nearest related idea in the note and state when each should be used.

These prompts are added study practice. They require explanation and transfer rather than copying a definition.