1 Data Warehouse Fundamentals

Data Warehousing and Data Mining · Unit 1

Data Warehouse Fundamentals

Exam-focused notes for Data Warehouse Fundamentals (Data Warehousing and Data Mining, BIT454): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Data Warehouse Fundamentals in short

A data warehouse is a central store of historical data, built for reporting and decision making. This chapter explains what makes it different from a normal database, how it is built, and how users explore it with OLAP.

Data Warehouse Fundamentals: notes

Data warehouse definition and characteristics

Bill Inmon defined a data warehouse as a subject-oriented, integrated, time-variant and non-volatile collection of data that supports management decisions.

  • Subject-oriented: data is organized around topics such as sales, customers or products, not around applications.
  • Integrated: data from many sources is merged. Names, codes and units are made consistent (for example, "M/F" and "Male/Female" become one format).
  • Time-variant: data covers a long period, often 5 to 10 years, so trends can be studied. Every record carries a time element.
  • Non-volatile: once loaded, data is not changed or deleted. It is only loaded and read.

Operational database vs data warehouse

An operational database (OLTP system) runs the daily work of a business, such as billing or bank transfers. A warehouse is used for analysis.

BasisOperational database (OLTP)Data warehouse (OLAP)
PurposeDay-to-day transactionsAnalysis and decision support
DataCurrent, detailedHistorical, summarized
DesignEntity-relationship, normalizedStar or snowflake, often denormalized
OperationsMany short reads and writesMostly large read queries
UsersClerks, cashiers, many usersAnalysts and managers, fewer users
SizeMegabytes to gigabytesGigabytes to terabytes or more
FocusData inInformation out

Data warehouse components and architecture

A warehouse system has these parts:

  • Data sources: operational databases, files and external data.
  • ETL tools: Extract data from sources, Transform it (clean, convert, merge), and Load it into the warehouse.
  • Warehouse database: the central store, with metadata that describes the data.
  • Data marts: smaller warehouses for one department, such as sales or finance.
  • Metadata repository: data about data, such as table meanings, sources and load times.
  • Front-end tools: query tools, reports, OLAP tools and data mining tools.

The usual design is a three-tier architecture. The bottom tier is the warehouse database server. The middle tier is an OLAP server (ROLAP or MOLAP). The top tier is the client with query and analysis tools.

What this unit covers

  • Data warehouse definition and characteristics
  • Operational database vs data warehouse
  • Data warehouse components and architecture
  • Data warehouse conceptual modeling techniques
  • OLAP technology and multidimensional analysis
  • Full cube and closed cube concepts
  • Beam search mechanism

Operational database vs data warehouse

2081 · 5 marks

Differentiate between data warehouse and operational database. [5]

Aspect Operational Database Data Warehouse ----------------------------------------------- Purpose Supports day-to-day business operations and transactions Supports analytical queries and decision-making Data Nature Current, real-time operational data Historical, aggregated, and summarized data Q...

Open this answer on its own page →

OLAP technology and multidimensional analysis

2081 · 5 marks

Write short notes on: (a) OLAP (b) Laplace Smoothing [5]

Definition: OLAP is a technology that enables users to quickly analyze summarized and consolidated data from a data warehouse or data mart using multidimensional views. Key Characteristics: - Supports complex analytical queries on large volumes of historical data - Provides fast response times fo...

Open this answer on its own page →

Beam search mechanism

2081 · 5 marks

Define full cube. Discuss the working mechanism of beam search. [5]

Show solved answer

Model Answer: Full Cube and Beam Search

Full Cube (Definition)

A full cube in the context of data warehousing and OLAP (Online Analytical Processing) refers to a complete multidimensional data structure where all possible combinations of dimension members are materialized and stored with their corresponding aggregate values.

Key characteristics:

  • Contains pre-computed aggregations for every possible combination of dimension levels
  • Provides the fastest query response times since all results are pre-calculated
  • Requires maximum storage space and longest computation time during cube construction
  • Enables instant retrieval of any aggregated data without further computation

Beam Search: Working Mechanism

Beam search is a heuristic search algorithm that explores a solution space by maintaining a limited set of the most promising candidates at each step.

How it works:

  1. Initialization: Start with the initial state (root node)

  2. Expansion: At each level, generate all successor states (child nodes) from the current set of states

  3. Evaluation: Evaluate each successor using a heuristic function (e.g., f(n) = g(n) + h(n))

  4. Selection: Keep only the top-k most promising states (where k is the beam width) based on heuristic scores

  5. Pruning: Discard all other states to limit memory and computation

  6. Iteration: Repeat steps 2-5 until reaching a goal state or maximum depth

Advantages:

  • More memory-efficient than breadth-first search
  • Faster than exhaustive search methods
  • Practical for large search spaces

Disadvantages:

  • May miss optimal solution if pruned prematurely
  • Quality depends on heuristic function accuracy
  • Beam width selection is critical

Example: In machine translation, beam search keeps top-5 most likely word sequences at each step rather than exploring all possibilities.

Open this answer on its own page →

Data warehouse conceptual modeling techniques

2081 · 5 marks

Explain any two conceptual modeling techniques of data warehousing. [5]

Conceptual modeling in data warehousing involves designing the logical structure of data to support analytical queries and decision-making. Two major techniques are: --- Definition: The star schema is a denormalized database design where a central fact table is connected to multiple dimension tab...

Open this answer on its own page →

Full cube and closed cube concepts

2082.1 · 5 marks

Differentiate between full cube and closed cube. [5]

A full cube is a 3D representation of a cube where all six faces are visible in the isometric or orthographic projection. It shows the complete structure of the cube with: - Top face visible - Front face visible - Right side face visible - All three visible faces are drawn with their full dimensi...

Open this answer on its own page →