Data Warehousing Concepts Explained
Data Warehousing Concepts Explained
Advance Database Concept : Data Mining and Data Warehousing Design Architecture,
Basic Principles, OLAP, OLTP Vs OLAP.
1
Data Warehousing
Introduction
Data warehousing is the process of collecting, integrating, storing, and managing data
from multiple sources in a central repository. It enables organizations to organize large
volumes of historical data for efficient querying, analysis, and reporting.
The main goal of data warehousing is to support decision-making by providing clean,
consistent, and timely access to data. It ensures fast data retrieval even when working with
massive datasets.
A Data Warehouse is built to support management functions whereas data mining is used
to extract useful information and patterns from data. Data warehousing is the process of
compiling information into a data warehouse. The main purpose of data warehousing is to
consolidate and store large datasets from various sources for efficient retrieval and
analysis, supporting reporting and decision-making. Data mining focuses on analyzing
data to discover patterns, trends, and insights, while data warehousing focuses on storing
and managing data in a centralized location.
It is a technology that aggregates structured data from one or more sources so that it can
be compared and analyzed rather than transaction processing. A data warehouse is
designed to support the management decision-making process by providing a platform for
data cleaning, data integration, and data consolidation. A data warehouse contains subject-
oriented, integrated, time-variant, and non-volatile data. The Data warehouse consolidates
data from many sources while ensuring data quality, consistency, and accuracy. Data
warehouse improves system performance by separating analytics processing from
transactional databases. Data flows into a data warehouse from the various databases. A
data warehouse works by organizing data into a schema that describes the layout and type
of data. Query tools analyze the data tables using schema.
2
Figure: Data Warehousing process
3
• Extract, Transform, Load (ETL) Process: The ETL process is responsible for
extracting data from different sources, transforming it into a suitable format, and
loading it into the data warehouse.
• Data Warehouse Database: This is the central repository where cleaned and
transformed data is stored. It is typically organized in a multidimensional format
for efficient querying and reporting.
• Metadata: Metadata describes the structure, source, and usage of data within the
warehouse, making it easier for users and systems to understand and work with the
data.
• Data Marts: These are smaller, more focused data repositories derived from the
data warehouse, designed to meet the needs of specific business departments or
functions.
• OLAP (Online Analytical Processing) Tools: OLAP tools allow users to analyze
data in multiple dimensions, providing deeper insights and supporting complex
analytical queries.
• End-User Access Tools: These are reporting and analysis tools, such as dashboards
or Business Intelligence (BI) tools, that enable business users to query the data
warehouse and generate reports.
4
Advantage and Disadvantage of Data Warehousing
Advantage Disadvantage
Better Decisions: Centralized data High Cost: Setup requires major
supports faster, smarter decisions. investment.
Business Intelligence: Enables Complexity: Needs skilled professionals
strong operational insights. to manage.
High Data Quality: Ensures Time-Consuming: Long setup and
consistency and reliability. integration time.
Scalable: Handles large and growing Integration Issues: Combining data from
datasets. sources can be challenging.
5
Staging Area: A temporary space where raw data is cleaned and validated before moving
to the warehouse. ETL tools manage this process:
• Extract (E): Pulls raw data from sources
• Transform (T): Standardizes and formats the data
• Load (L): Moves the data into the data warehouse
Data Warehouse: A central storage for organized, cleansed data, including both raw data
and metadata. Supports analysis, reporting, and decision-making.
Data Marts: Smaller, focused sections of the data warehouse for specific teams (e.g.,
sales, marketing), enabling quick access to relevant data.
Data Mining: Analyzing large datasets in the warehouse to find patterns, trends, and
insights that support decisions and improve operations.
Top-Down Approach
The Top-Down Approach, introduced by Bill Inmon, is a method for designing data
warehouses that starts by building a centralized, company-wide data warehouse. This
central repository acts as the single source of truth for managing and analyzing data across
the organization. It ensures data consistency and provides a strong foundation for decision-
making.
Working of Top-Down Approach
• Central Data Warehouse: The process begins with creating a comprehensive data
warehouse where data from various sources is collected, integrated, and stored. This
involves the ETL (Extract, Transform, Load) process to clean and transform the
data.
• Specialized Data Marts: Once the central warehouse is established, smaller,
department-specific data marts (e.g., for finance or marketing) are built. These data
marts pull information from the main data warehouse, ensuring consistency across
departments.
6
Advantages of Top-Down Approach
• Consistent View: Data marts built from a central warehouse ensure uniform data
across departments, reducing reporting discrepancies.
• High Data Consistency: Standardizing data through one source minimizes errors
and improves the reliability of insights.
• Simplified Maintenance: Updates in the central warehouse automatically reflect in
all data marts, saving time and effort.
• Scalable Architecture: New data marts can be added easily as business needs grow
or change.
• Stronger Governance: Centralized control improves data security, access
management, and compliance.
• Less Data Duplication: Data is stored once in the warehouse, saving space and
avoiding redundant or conflicting records.
• Better Reporting: A unified data source enables faster, more accurate reporting and
decision-making.
• Improved Integration: Central sourcing makes it easier to combine data from
multiple systems for deeper analysis.
7
Disadvantages of Top-Down Approach
• High Cost & Time: Building a central data warehouse and data marts requires major
investment and long implementation time, making it hard for smaller organizations.
• Complex Setup: Designing and managing a centralized system is technically
complex and requires skilled resources and careful planning.
• Low Flexibility: Predefined structures make it hard to adapt quickly to changing
business needs or reporting requirements.
• Limited User Input: IT-led development can exclude business users, resulting in
solutions that may not meet their actual needs.
• Data Delays: Pulling data from various systems can cause processing delays,
affecting real-time reporting and insights.
• Unclear Data Ownership: Centralization can blur responsibility, making it unclear
who manages or maintains specific data.
Bottom-Up Approach
The Bottom-Up Approach, popularized by Ralph Kimball, takes a more flexible and
incremental path to designing data warehouses. Instead of starting with a central data
warehouse, it begins by building small, department-specific data marts that cater to the
immediate needs of individual teams, such as sales or finance. These data marts are later
integrated to form a larger, unified data warehouse.
Working of Bottom-Up Approach
• Department-Specific Data Marts: The process starts with creating data marts for
individual departments or specific business functions. These data marts are
designed to meet immediate data analysis and reporting needs, allowing
departments to gain quick insights.
• Integration into a Data Warehouse: Over time, these data marts are connected and
consolidated to create a unified data warehouse. The integration ensures
consistency and provides a comprehensive view of the organization’s data.
8
Advantage and Disadvantage of Bottom-Up Approach
Advantage Disadvantage
Faster Reporting – Data marts Inconsistent Views – Different structures
allow quick insights and report can lead to inconsistent reporting.
generation.
Step-by-Step Development – Data Silos – Independent marts may cause
Enables gradual rollout with quick duplication and isolation.
wins.
User-Centric – Involves business Integration Difficulty – Combining varied
users to meet actual needs. marts into one warehouse is hard.
Highly Flexible – Easily Redundant Efforts – Similar marts may be
customized for departments or built by different teams.
evolving needs.
Quick Results – Early setup gives Harder to Manage – Multiple marts
immediate value. increase maintenance overhead.
9
3. Data Mart: A subset of a data warehouse, focusing on a specific business area or
department.
4. Cloud Data Warehouse: A data warehouse hosted in the cloud, offering scalability
and flexibility.
5. Big Data Warehouse: Designed to store vast amounts of unstructured and
structured data for big data analysis.
6. Virtual Data Warehouse: Provides access to data from multiple sources without
physically storing it.
7. Hybrid Data Warehouse: Combines on-premises and cloud-based storage to offer
flexibility.
8. Real-time Data Warehouse: Designed to handle real-time data streaming and
analysis for immediate insights.
10
Issues Occur while Building the Warehouse
1. When and How to Gather Data?
• Source-driven: Data sources push updates to the warehouse periodically or
continuously.
• Destination-driven: The warehouse pulls data on a fixed schedule.
• Perfect sync is costly, so data is slightly outdated — acceptable for analysis.
2. What Schema to Use?
• Sources have varied formats.
• The warehouse stores a cleaned, unified version — not a direct copy, but a
consistent snapshot for analysis.
3. Data Transformation and Cleansing
• Fixes errors like typos or invalid codes using reference data.
• Fuzzy lookup helps match similar but not identical values.
4. How to Propagate Updates?
• If warehouse schema = source schema -> easy sync.
• If not -> it becomes a view maintenance challenge.
5. What Data to Summarize?
• Raw data is large; store summaries (e.g., total sales by category).
• Aggregates support efficient querying without full details.
11
• Cleansing: Standardizes customer names, locations, and product categories.
• Updates: Near real-time or scheduled loads for fresh insights.
• Summarization: Bestsellers by category, regional demand trends, logistics
performance.
2. Banking: HDFC Bank
• Data Gathering: ATM transactions, online banking, credit card usage, loan
records.
• Schema: Integrates data from core banking, CRM, and fraud detection systems.
• Cleansing: Fixes inconsistencies in account info, transaction logs, and addresses.
• Updates: Transaction data is batched and uploaded nightly.
• Summarization: Daily cash flow reports, high-risk account flags, and customer
profitability analysis.
Data Mining
Data Mining Overview
Data bears the maximum significance in a business setup. Without timely and relevant
data, no one can establish a profitable enterprise. Relevant statistics and facts help
marketers trace their target audience, industry trends, competitors, and everything about a
market.
Data mining, in this regard, assists companies in identifying and evaluating raw data sets
to extract valuable insights for business advancement. Data states that companies around
the globe spent around $150,000 in 2023 for data mining purposes.
Data mining is the method of identifying, gathering, and analyzing relevant data for a
business. It assists in understanding in-depth insights and tracing patterns in the market to
make solid decisions. This data-driven tactic allows marketers to attain high predictability
abilities with few chances of making mistakes.
In the contemporary market setup, data mining is an essential technique marketers often
employ to get a competitive advantage. There are multiple principles of data mining that
contribute to its effectiveness. It is a valuable method for companies of all sizes that aim
12
to progress in the industry. There are various data mining tools and software available in
the market that organizations can leverage either for free or by subscribing to them.
Data mining is the process of extracting insights from large datasets using statistical and
computational techniques. It can involve structured, semi-structured or unstructured data
stored in databases, data warehouses or data lakes. The goal is to uncover hidden patterns
and relationships to support informed decision-making and predictions using methods like
clustering, classification, regression and anomaly detection.
Data mining is widely used in industries such as marketing, finance, healthcare and
telecommunications. For example, it helps identify customer segments in marketing or
detect disease risk factors in healthcare. However, it also raises ethical concerns
particularly regarding privacy and the misuse of personal data, requiring careful
safeguards.
Data Mining is the process of finding patterns and correlations within large data sets to
identify relationships between data. Data mining tools allow a business organization to
predict customer behavior. Data mining tools are used to build risk models and detect
fraud. Data mining is used in market analysis and management, fraud detection, corporate
analysis, and risk management.
14
4. Data Mining Techniques
We will explore various data mining techniques such as clustering, classification and
regression that are applied to data in order to uncover insights and predict future trends.
4.1 Classification and Prediction
we will cover methods used for classification and prediction in Data Mining. These
methods help in predicting outcomes based on historical data.
4.2. Clustering and Cluster Analysis
In this section we will explore Clustering techniques which are used to group similar data
points into clusters, uncovering patterns in large datasets.
• Clustering
• Partitioning Methods
• Hierarchical Methods
• Cluster Analysis
• Associative Classification
15
Basic Working:
1. It all starts when the user puts up certain data mining requests, these requests are
then sent to data mining engines for pattern evaluation.
2. These applications try to find the solution to the query using the already present
database.
3. The metadata then extracted is sent for proper analysis to the data mining engine
which sometimes interacts with pattern evaluation modules to determine the result.
16
4. This result is then sent to the front end in an easily understandable manner using a
suitable interface.
18
Advantages of Data Mining
19
• Organizations must devote a significant amount of resources to training and
implementation. Furthermore, the algorithms used in the creation of data mining
tools cause them to work in different ways.
20
Conclusion
Data mining and data warehousing both serve different purposes, but they are
complementary in nature. Data warehousing creates a centralized and organized database
for efficient querying and reporting, while data mining digs deep into these data sets to
uncover hidden patterns and valuable insights. Warehousing helps an organization in
making sure the accuracy and access of data, whereas mining turns that data into
actionable intelligence. This marriage of techniques would let businesses make better
strategic decisions, and operations would be optimized more effectively.
• OLAP is designed for complex queries and data analysis, enabling businesses to
derive insights from vast datasets through multidimensional analysis.
Online Analytical Processing (OLAP) refers to software tools used for the analysis of data
in business decision-making processes. OLAP systems generally allow users to extract
and view data from various perspectives, many times they do this in a multidimensional
format which is necessary for understanding complex interrelations in the data. These
systems are part of data warehousing and business intelligence, enabling users to do things
like trend analysis, financial forecasting, and any other form of in-depth data analysis.
OLAP Examples
Any type of Data Warehouse System is an OLAP system. The uses of the OLAP System
are described below.
• Spotify personalizes homepages with custom songs and playlists based on user
preferences.
• Can store planning, analysis, and budgeting for business analytics within one
platform.
• Efficiently handle large volumes of data, making them suitable for enterprise-level
business applications.
• Data analysis occurs only after extraction and transformation, leading to system
delays.
22
Online Transaction Processing (OLTP)
OLTP Examples
An example considered for OLTP System is ATM Center a person who authenticates
first will receive the amount first and the condition is that the amount to be withdrawn
must be present in the ATM. The uses of the OLTP System are described below.
• OLTP handles the ACID properties during data transactions via the application.
• It's also used for Online banking, Online airline ticket booking, sending a text
message, add a book to the shopping cart.
24
Task It provides a multi-dimensional It reveals a snapshot of present
view of different business business tasks.
tasks.
Purpose It serves the purpose to extract It serves the purpose to Insert,
information for analysis and Update, and Delete information
decision-making. from the database.
Volume of A large amount of data is The size of the data is relatively
data stored typically in TB, PB small as the historical data is
archived in MB, and GB.
Queries Relatively slow as the amount Very Fast as the queries operate on
of data involved is large. 5% of the data.
Queries may take hours.
Update The OLAP database is not The data integrity constraint must be
often updated. As a result, data maintained in an OLTP database.
integrity is unaffected.
Backup and It only needs backup from time The backup and recovery process is
Recovery to time as compared to OLTP. maintained rigorously
Processing The processing of complex It is comparatively fast in processing
time queries can take a lengthy time. because of simple and
straightforward queries.
Types of users This data is generally managed This data is managed by clerksForex
by CEO, MD, and GM. and managers.
Operations Only read and rarely write Both read and write operations.
operations.
Updates With lengthy, scheduled batch The user initiates data updates,
operations, data is refreshed on which are brief and quick.
a regular basis.
Nature of The process is focused on the The process is focused on the
audience customer. market.
Database Design with a focus on the Design that is focused on the
Design subject. application.
Productivity Improves the efficiency of Enhances the user's productivity.
business analysts.
25