Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Introduction to Data Warehousing ยท Lesson 5 of 9

Module Four

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
5

Module 4: Data Integration and ETL Processes

1. Introduction to Data Integration

Imagine you own a supermarket in Lagos. You collect information from different places:

  • Your cash register records daily sales.
  • Your website records online orders.
  • Your mobile app records customer activities.
  • Your warehouse system records available products.
  • Your payment system records successful transactions.

Each system stores different information. How can you bring all this information together to understand how your business is performing?

The answer is Data Integration.

Data integration is the process of collecting information from different sources and combining it into one organised place where it can be easily accessed and analysed.

Why Is Data Integration Important?

Data integration helps businesses to:

  1. Combine information from different sources.
  2. Reduce duplicate records.
  3. Make reports more accurate.
  4. Understand customers better.
  5. Make faster business decisions.
  6. Keep business information organised.

Example: A bank can combine customer information from its mobile banking app, ATM system, branch offices, and payment platforms to understand customer activities.

2. Understanding ETL

ETL stands for:

  • E โ€“ Extract
  • T โ€“ Transform
  • L โ€“ Load

ETL is a process used to move data from different sources into a data warehouse.

Think of ETL like preparing food. Before cooking, you collect the ingredients, clean them, arrange them, and then put them into a cooking pot. ETL works in a similar way with data.

Step 1: Extract

Extraction means collecting data from different sources.

These sources may include:

  • Excel spreadsheets.
  • Business databases.
  • Websites.
  • Mobile applications.
  • Customer relationship management systems.
  • Payment platforms.
  • Sales systems.

Example: A Nigerian supermarket collects sales records from its branches in Ibadan, Lagos, and Abuja. The process of collecting these records is called extraction.

Step 2: Transform

Transformation means cleaning and changing data into a format that can be used properly.

Sometimes data contains mistakes, duplicates, missing values, or different formats. Transformation helps to correct these problems.

Common transformation activities include:

  • Removing duplicate records.
  • Correcting spelling mistakes.
  • Changing date formats.
  • Converting currencies.
  • Handling missing information.
  • Combining related information.
  • Checking that data follows the correct format.

Example: A supermarket receives these records:

Customer City Amount
John Lagos 5000
John Lagos 5000
Mary IBADAN 7500
Peter Abuja 3000

The first two records may be duplicates. The city name IBADAN may also need to be changed to Ibadan for consistency.

After transformation, the data becomes cleaner and easier to analyse.

Step 3: Load

Loading means moving the cleaned and transformed data into the data warehouse.

Once the data is loaded, business analysts and managers can use it to create reports, dashboards, and other business insights.

Example: After cleaning sales records from all supermarket branches, the information is loaded into the company's central data warehouse. The manager can now compare sales across Lagos, Ibadan, and Abuja.

3. How the ETL Process Works

The ETL process follows three main stages.

The ETL Process

1. EXTRACT

Collect data from different sources.

โ†’
2. TRANSFORM

Clean and organise the data.

โ†’
3. LOAD

Store the prepared data in the warehouse.

A Practical Example

Imagine a school in Nigeria with three branches. Each branch records students' information, examination scores, fees, and attendance.

The school wants one report showing the performance of all its branches.

The ETL process can work like this:

  1. Extract: Collect student records from all three branches.
  2. Transform: Correct missing names, remove duplicate student records, and standardise examination dates.
  3. Load: Store the clean records in the school's data warehouse.

The school management can now compare student performance across all branches.

4. Understanding ELT

You may also come across another term called ELT.

ELT means:

  • E โ€“ Extract
  • L โ€“ Load
  • T โ€“ Transform

ELT is similar to ETL, but the order is different.

In ETL, data is transformed before it enters the data warehouse.

In ELT, data is first extracted and loaded into the storage system. Transformation happens afterwards, usually inside the data warehouse.

Difference Between ETL and ELT

ETL ELT
Extract, Transform, Load Extract, Load, Transform
Data is cleaned before loading. Data is loaded before transformation.
Often uses a separate transformation process. Often uses the warehouse to transform data.
Useful where data must be prepared before storage. Common in modern cloud data platforms.

Example: A company may use ETL to clean customer information before storing it. Another company may use ELT to load large amounts of raw data into a cloud warehouse and transform it later.

Neither approach is always better. The right choice depends on the company's needs, technology, data size, and security requirements.

5. Data Cleaning During Integration

Data cleaning is an important part of data integration. It involves finding and correcting errors that could affect reports and business decisions.

Common Data Problems

1. Duplicate Data

This happens when the same information appears more than once.

Example: A customer is accidentally registered twice.

2. Missing Data

This happens when important information is not provided.

Example: A customer record has a name but no phone number.

3. Incorrect Data

This happens when information is entered wrongly.

Example: A customer enters 500,000 instead of 50,000 as a payment amount.

4. Inconsistent Data

This happens when the same information is stored in different formats.

Example:

  • Lagos
  • LAGOS
  • lagos

All three may refer to the same city, but a data warehouse should use a consistent format.

5. Invalid Data

This happens when information does not follow the expected rules.

Example: A date of birth is entered as 35/18/2020.

Cleaning these problems helps businesses maintain reliable information.

6. Common ETL Tools

Businesses use different tools to extract, transform, and load data.

  1. IBM DataStage: Used to integrate and transform data from different sources.
  2. Microsoft SQL Server Integration Services (SSIS): Used to build data integration and ETL workflows.
  3. Talend: Provides tools for data integration and data management.
  4. Apache Airflow: Used to schedule and manage data workflows.
  5. Informatica: Provides enterprise data integration solutions.
  6. Matillion: Provides data integration and transformation tools, especially for cloud data platforms.

These tools help organisations automate data movement and preparation instead of doing everything manually.

7. Practical Activity: Prepare Sales Data

Let's practise how data cleaning works.

Imagine you are helping a supermarket organise its sales records.

Here is the original information:

Customer City Sales Amount (โ‚ฆ)
Ada Lagos 5000
John IBADAN 7500
Ada Lagos 5000
Mary Abuja 6000
Peter lagos 4500

Your Tasks

  1. Identify the duplicate record.
  2. Make all city names use the same format.
  3. Count the number of unique customers.
  4. Calculate the total sales amount after removing the duplicate.

Suggested Solution

After removing the duplicate and correcting the city names:

Customer City Sales Amount (โ‚ฆ)
Ada Lagos 5000
John Ibadan 7500
Mary Abuja 6000
Peter Lagos 4500
  • Number of unique customers: 4.
  • Total sales: โ‚ฆ23,000.

This activity demonstrates how transformation improves data quality before loading information into a warehouse.

8. Important Data Integration Terms

Term Meaning
Data Integration Combining data from different sources.
ETL Extract, Transform, Load.
ELT Extract, Load, Transform.
Extraction Collecting data from sources.
Transformation Cleaning and changing data.
Loading Moving prepared data into storage.
Data Cleaning Finding and correcting data problems.
Data Pipeline A series of steps that moves and processes data.
Duplicate Data Repeated information.
Data Source The original location of information.

9. Module Summary

In this module, you have learned that data integration brings information from different sources together.

You also learned about ETL, which stands for Extract, Transform, and Load.

The three ETL stages are:

  • Extract: Collect data from different sources.
  • Transform: Clean and organise the data.
  • Load: Store the prepared data in a data warehouse.

You also learned about ELT, data cleaning, popular ETL tools, and how businesses prepare information for analysis.

Remember: Good business decisions depend on good-quality data.

10. Knowledge Check

Test what you have learned.

  1. What does ETL stand for?
  2. What happens during the extraction stage?
  3. What is data transformation?
  4. What does loading mean in data warehousing?
  5. What is the main difference between ETL and ELT?
  6. Why is duplicate data a problem?
  7. Mention three common data quality problems.
  8. Name two tools used for data integration.
  9. What is a data pipeline?
  10. Why should data be cleaned before analysis?

Practical Challenge

Imagine you are managing data for a Nigerian bank. Explain how you would use the ETL process to combine customer information from its mobile app, ATM machines, and branch offices.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’