Lecture: Lecture 03 - Data Warehouse Conceptual and Logical Design

Core idea

Once an aggregation is meaningful, ask whether partial summaries retain enough information for a broader result. SUM, MIN and MAX combine directly; averages need supporting counts or sums; exact medians generally require richer information than partial medians and group sizes.

Explanation and examples

ClassCombining partial resultsExamples
DistributiveCorresponding operation on compatible partial resultsSUM, MIN, MAX
AlgebraicFixed-size supporting summariesAVG from SUM and COUNT
HolisticNo generally sufficient fixed-size summary for an exact resultMedian, mode

Added example: 100 complaints average 2 days; 10 average 10 days. Overall mean is (100*2 + 10*10)/110 = 2.727..., not 6. Six is the equal-weight average of shops. Equal counts guarantee that averaging group means produces the population mean. Unequal counts can coincide in special cases but do not generally justify the method.

Counts must match observations included in the means, treating missing values consistently. Rounded partial averages can lose precision. Sums and counts avoid that avoidable loss.

Page 20 shows group price means that cannot simply be averaged into the category mean when counts differ. The source’s Olistic means holistic. Its wording does not mean a median is impossible from detailed values: ordinary fixed-size partial summaries are insufficient in general.

Mergeability does not fix invalid measure semantics, overlaps or double counting.

Related: Measure Additivity and Snapshot Semantics, Warehouse Size Sparsity and Aggregation.

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: 19-21.

Exam practice and transfer

Worked scenario

A warehouse designer is deciding how to represent distributive algebraic and holistic aggregates 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

To combine two group averages, retain each group’s sum and count. The median of two groups cannot generally be recovered from only their medians and sizes.

Retrieval questions

  • Explain Distributive Algebraic and Holistic Aggregates 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.