Welcome to Module 2 of Introduction to Data Warehousing!
In Module 1, you learned that a data warehouse is a central place where information from different sources is collected, organised, and stored for analysis.
But have you ever wondered how information gets into a data warehouse? How does a company collect information from different applications and bring everything together?
That is what we will learn in this module.
Imagine you own a supermarket with branches in Lagos, Abuja, and Ibadan. Each branch records its daily sales using a computer system. You want to bring all the sales information together so you can understand how the entire business is performing.
A data warehouse uses different components to make this possible.
Data warehouse architecture refers to the structure or arrangement of the different parts of a data warehouse and how they work together.
Think about building a house. A house has different parts, such as:
All these parts work together to make the house useful.
A data warehouse also has different parts. Each part has a special job, such as collecting data, cleaning it, storing it, and making it available for analysis.
Let's explore the major components of a data warehouse using a simple example.
Imagine a Nigerian supermarket collects information from its cash registers, online store, customer records, and inventory system.
The information passes through different stages before it becomes available for reporting.
Data sources are the places where information originally comes from.
Examples include:
Example: A supermarket may collect sales information from its checkout machines and customer information from its registration system.
Data extraction means collecting information from different sources so that it can be prepared for the data warehouse.
For example, a company may collect sales records from three different branches.
The information may include:
A staging area is a temporary storage location where collected data is kept before it enters the main data warehouse.
Think of it as a waiting room.
When people visit a hospital, they may wait in the reception area before seeing a doctor. In a similar way, data can wait in a staging area before being processed and stored.
In the staging area, the data may be:
Data transformation means changing data into a format that is suitable for storage and analysis.
For example, imagine three supermarket branches record dates differently:
These dates represent the same day, but they use different formats.
Data transformation can change them into one standard format so that the information is easier to combine and analyse.
After data has been prepared, it is stored in the main data warehouse.
This is where organised information is kept for future analysis and reporting.
For example, a supermarket may store:
A data mart is a smaller section of a data warehouse designed for a particular department or business area.
Imagine a large supermarket company has different departments:
Each department may need different information.
For example:
Data marts make it easier for departments to access information related to their work.
After information is stored, analysts can use different tools to study it and create reports.
Examples include:
These tools can turn numbers into charts, tables, and dashboards that are easier to understand.
Let's use a simple example to understand how all the components work together.
A supermarket has three branches in Lagos, Abuja, and Ibadan. Each branch records sales every day.
The process works like this:
The diagram below shows a simplified way information can move from different sources into a data warehouse.
Sales Systems | Databases | Websites | Excel Files
โฌ
Collect information from different sources
โฌ
Temporarily hold collected data
โฌ
Clean, organise, and prepare information
โฌ
Store prepared and organised information
โฌ
Power BI | Excel | Tableau | Dashboards
Remember: This is a simplified architecture. Real data warehouse systems may have additional components and different arrangements.
Some data warehouse systems are organised into layers. Each layer performs a particular task.
The bottom layer is responsible for collecting, preparing, and storing data.
It receives information from different sources and prepares it for the data warehouse.
The middle layer helps organise and process information for analysis. It may use OLAP technology to help users examine data from different angles.
The top layer is where users access information through reporting and analysis tools.
For example, a manager may open a Power BI dashboard to check the company's monthly sales.
A data pipeline is a series of steps that moves data from one place to another, sometimes cleaning or changing it along the way.
Think about a water pipeline. Water travels through pipes from one location to another.
A data pipeline works in a similar way, but it moves information instead of water.
Example: An online shop receives customer orders. The order information is collected, checked, processed, and sent to a data warehouse for reporting.
Data pipelines help organisations move information automatically and consistently.
Metadata means data about data.
It provides information that describes other information.
For example, imagine you have a spreadsheet containing customer information.
The spreadsheet may contain:
Metadata can describe what each column means, the type of information it contains, and where the information came from.
A metadata repository is a place where metadata is stored and managed.
A well-designed data warehouse architecture helps businesses manage information properly.
Its benefits include:
Imagine you own an online store that sells phones, laptops, and accessories in Nigeria.
Your business collects information from three places:
Your task is to explain how this information can move into a data warehouse.
Answer these questions:
| Term | Simple Meaning |
|---|---|
| Architecture | The structure and arrangement of a system. |
| Data Source | Where information originally comes from. |
| Data Extraction | Collecting information from different sources. |
| Staging Area | A temporary location for collected data. |
| Transformation | Changing data into a suitable format. |
| Data Mart | A smaller section of a data warehouse for a particular business area. |
| Data Pipeline | A series of steps used to move and process data. |
| Metadata | Information that describes other data. |
| Reporting Tool | Software used to present and analyse information. |
Excellent work! You have learned how the different parts of a data warehouse work together.
Remember these important points:
Test what you have learned by answering these questions:
In the next module, you will learn about Types of Data Warehouses. You will discover enterprise data warehouses, operational data stores, data marts, cloud data warehouses, and on-premises data warehouses.
Keep practising. Every new concept brings you closer to becoming a data professional!