Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Certified Data Architecture Expert ยท Lesson 3 of 8

Module Two

๐Ÿ“– 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.
3
Module 2 ยท Certified Data Architecture Specialist

๐Ÿ“€ Module 2: Storing Data โ€“ Databases, Lakes & Warehouses

Hello again, future Data Architect! In Module 1, you learned what data is and why it is important. Now, we are going to explore where data is stored and how it is organised. Just like you have different places to store your things โ€“ a drawer for clothes, a shelf for books, and a box for toys โ€“ computers have different places to store data.

In this module, you will learn about databases, data lakes, and data warehouses. These are like special containers that hold data. You will also learn about different ways to organise data so that it is easy to find and use.

Let's begin with a story that will help you understand these ideas!

๐ŸŽฏ Learning Objectives

After this module, you will be able to:

  • Explain what a database is and why we use it.
  • Tell the difference between a data lake and a data warehouse.
  • Understand what a table is in a database.
  • Explain what SQL is in simple words.
  • Name different types of databases (relational, NoSQL).
  • Understand how data is organised in rows and columns.

๐Ÿ“– Warmโ€‘up Story: Chidiโ€™s Toy Boxes

Chidi loved collecting toys. He had cars, action figures, and building blocks. But his room was a mess โ€“ toys were everywhere! He could never find what he wanted.

His mother said: โ€œChidi, you need to organise your toys. Use different boxes for different types of toys.โ€

Chidi got three boxes:

  • Box 1: All his cars (red ones, blue ones, big ones, small ones).
  • Box 2: All his action figures (superheroes, villains).
  • Box 3: All his building blocks (colours, shapes).

Now, Chidi could find any toy quickly. Each box was like a database โ€“ it stored similar things together. Inside each box, the toys were organised โ€“ for example, cars were arranged by colour.

Just like Chidi's toy boxes, computers store data in special containers. Some containers are like databases (organised, structured), some are like data lakes (a big pool of raw data), and some are like data warehouses (organised for analysis).

Let's explore these containers!

๐Ÿ“˜ Lesson 1: What is a Database?

Definition: A database is a collection of data that is organised so that it can be easily accessed, managed, and updated.

Why is it important? Without databases, we would have to search through piles of data to find what we need.

Simple explanation: A database is like a giant, organised filing cabinet. Each drawer has files, and each file has papers with data.

Realโ€‘life example: A school's student database stores the names, ages, and grades of all students.

School example: Your school uses a database to keep track of attendance.

Home example: Your phone's contact list is a small database.

Nigerian example: The NIN database stores information for millions of Nigerians.

Illustration:

        +---------------------+
        |       Database      |
        +---------------------+
        | Student Name | Age  |
        +---------------------+
        | Ada          | 10   |
        | Chidi        | 12   |
        +---------------------+
    

Mini summary: A database is an organised collection of data that is easy to access and update.

๐Ÿ“˜ Lesson 2: What is a Table in a Database?

Definition: A table is a way to organise data in rows and columns โ€“ like a spreadsheet.

Why is it important? Tables make it easy to see relationships between different pieces of data.

Simple explanation: Think of a table like a grid. Each row is a record (a single item), and each column is a field (a type of information).

Realโ€‘life example: A teacher's gradebook โ€“ each row is a student, and each column is a subject.

School example: A timetable โ€“ rows are periods, columns are days of the week.

Home example: A chore chart โ€“ rows are chores, columns are days of the week.

Nigerian example: A market price list โ€“ rows are items, columns are prices from different sellers.

Illustration:

        +---------------------+----------------+----------------+
        |     Name            |  Age           |  Class         |
        +---------------------+----------------+----------------+
        |     Ada             |  10            |  Primary 5     |
        |     Chidi           |  12            |  JSS 1         |
        +---------------------+----------------+----------------+
    

Mini summary: A table organises data in rows and columns.

๐Ÿ“˜ Lesson 3: Relational Databases

Definition: A relational database stores data in tables that are connected to each other through relationships.

Why is it important? It allows us to link data from different tables โ€“ like linking a student to their classes.

Simple explanation: Imagine you have two tables: one for students and one for classes. A relational database can link a student to the classes they are taking.

Realโ€‘life example: A hospital database links patients to their doctors.

School example: A school database links students to their teachers.

Home example: A family database links parents to their children.

Nigerian example: A bank database links customers to their accounts.

Illustration:

        +------------------+        +------------------+
        |  Students        |        |  Classes         |
        +------------------+        +------------------+
        | ID | Name        |        | ID | Subject     |
        +------------------+        +------------------+
        | 1  | Ada         |        | 1  | Math        |
        | 2  | Chidi       |        | 2  | Science     |
        +------------------+        +------------------+
               |                            |
               +----------+-----------------+
                          |
                          v
        +-------------------------------------+
        |  Student_Classes (links them)       |
        +-------------------------------------+
        | Student_ID | Class_ID               |
        +-------------------------------------+
        | 1          | 1                      |
        | 2          | 2                      |
        +-------------------------------------+
    

Mini summary: Relational databases connect tables using relationships.

๐Ÿ“˜ Lesson 4: What is SQL?

Definition: SQL (Structured Query Language) is a special language used to talk to databases and get the data you need.

Why is it important? SQL is the most common way to interact with databases โ€“ it's like the language of data.

Simple explanation: SQL is like asking a librarian for a book โ€“ you say "I want all books by this author" and the librarian (database) brings them to you.

Realโ€‘life example: When you search for a product on a website, the website uses SQL to find it in the database.

School example: A teacher uses SQL to find all students who scored above 80.

Home example: You use SQL to find all movies you watched last month.

Nigerian example: A bank uses SQL to find all transactions for a customer.

Illustration:

        SQL Command:
        SELECT * FROM Students WHERE Age > 10;
        (This asks the database to give you all students older than 10.)
    

Mini summary: SQL is the language we use to ask databases for data.

๐Ÿ“˜ Lesson 5: NoSQL Databases

Definition: NoSQL databases are databases that do not use the traditional table format โ€“ they can store data in documents, keyโ€‘value pairs, or graphs.

Why is it important? NoSQL databases are great for storing large amounts of unstructured data โ€“ like social media posts.

Simple explanation: While relational databases are like a filing cabinet, NoSQL databases are like a big box where you can throw different types of items.

Realโ€‘life example: Facebook uses NoSQL databases to store posts, photos, and comments.

School example: A school might use NoSQL to store student portfolios with different types of files.

Home example: A smart home might use NoSQL to store data from different sensors.

Nigerian example: A fintech app might use NoSQL to store transaction data.

Illustration:

        NoSQL Document:
        {
            "name": "Ada",
            "age": 10,
            "subjects": ["Math", "Science"],
            "address": {"city": "Lagos", "state": "Lagos"}
        }
    

Mini summary: NoSQL databases are flexible and can store many types of data.

๐Ÿ“˜ Lesson 6: What is a Data Lake?

Definition: A data lake is a large storage place where you can keep raw data in its original format โ€“ like a giant pool of data.

Why is it important? Data lakes let you store all your data without having to organise it first. You can decide how to use it later.

Simple explanation: Imagine a big lake where you can throw all your toys โ€“ cars, dolls, blocks โ€“ without sorting them. Later, you can dive in and pick out what you need.

Realโ€‘life example: A company might store all its logs, customer data, and sensor data in a data lake.

School example: A school might store all student records, teacher notes, and photos in a data lake.

Home example: You might store all your family photos and videos in a data lake.

Nigerian example: The NIN system might use a data lake to store different types of citizen data.

Illustration:

        +---------------------+
        |      Data Lake      |
        +---------------------+
        |  Raw Data           |
        |  - Logs             |
        |  - Images           |
        |  - Documents        |
        |  - Sensor data      |
        +---------------------+
    

Mini summary: A data lake stores raw data in its original form.

๐Ÿ“˜ Lesson 7: What is a Data Warehouse?

Definition: A data warehouse is a large storage place that holds organised, processed data that is ready for analysis and reporting.

Why is it important? Data warehouses make it easy to run reports and answer business questions.

Simple explanation: A data warehouse is like a library โ€“ the books are organised, catalogued, and ready to be read.

Realโ€‘life example: A retail company uses a data warehouse to analyse sales trends.

School example: A school uses a data warehouse to analyse student performance over time.

Home example: You might use a data warehouse to track your spending habits.

Nigerian example: A bank uses a data warehouse to analyse customer transactions and detect fraud.

Illustration:

        +---------------------+
        |   Data Warehouse    |
        +---------------------+
        |  Organised Data     |
        |  - Sales reports    |
        |  - Customer data    |
        |  - Financial data   |
        +---------------------+
    

Mini summary: A data warehouse stores organised, processed data for analysis.

๐Ÿ“˜ Lesson 8: Data Lake vs Data Warehouse

Definition: Data lakes store raw data; data warehouses store processed, organised data.

Why is it important? Choosing the right one depends on what you need to do with the data.

Simple explanation: A data lake is like a messy room where you throw everything. A data warehouse is like a tidy room where everything is in its place.

Realโ€‘life example: A company uses a data lake to store all raw data, and a data warehouse to store cleaned, organised data for analysis.

School example: A school stores all student records in a data lake, and uses a data warehouse to generate report cards.

Home example: You store all family photos in a data lake, and use a data warehouse to create a photo album.

Nigerian example: A bank stores all transaction logs in a data lake, and uses a data warehouse to generate monthly statements.

Illustration:

        +------------------+          +------------------+
        |   Data Lake      |          |  Data Warehouse  |
        |  (Raw Data)      |          |  (Processed Data)|
        +------------------+          +------------------+
        |  - Logs          |   ->     |  - Reports       |
        |  - Images        |          |  - Analytics     |
        |  - Sensor data   |          |  - Dashboards    |
        +------------------+          +------------------+
    

Mini summary: Data lakes store raw data; data warehouses store organised, processed data.

๐Ÿ“˜ Lesson 9: What is a Lakehouse?

Definition: A lakehouse is a new type of storage that combines the best of data lakes and data warehouses โ€“ raw data storage with organised querying.

Why is it important? It gives you the flexibility of a data lake and the performance of a data warehouse.

Simple explanation: A lakehouse is like having a big room where you can throw everything, but also have shelves and labels to find things quickly.

Realโ€‘life example: A modern company might use a lakehouse to store all their data and run fast analytics.

School example: A school might use a lakehouse to store student data and quickly generate reports.

Home example: You might use a lakehouse to store all your digital files and quickly search for anything.

Nigerian example: A fintech company might use a lakehouse to store transaction data and run real-time analytics.

Illustration:

        +---------------------+
        |      Lakehouse      |
        +---------------------+
        |  Raw Data (like lake)|
        |  +----------------+ |
        |  | Organised (like | |
        |  | warehouse)     | |
        |  +----------------+ |
        +---------------------+
    

Mini summary: A lakehouse combines the features of data lakes and data warehouses.

๐Ÿ“˜ Lesson 10: How Data is Organised โ€“ Rows and Columns

Definition: Data in tables is organised into rows and columns. Rows are records (single items), and columns are fields (types of information).

Why is it important? This structure makes it easy to find, sort, and filter data.

Simple explanation: Rows are like people standing in a line; columns are like different pieces of information about each person.

Realโ€‘life example: A spreadsheet with names in rows and scores in columns.

School example: A class register โ€“ rows are students, columns are attendance days.

Home example: A family budget โ€“ rows are expenses, columns are months.

Nigerian example: A market inventory โ€“ rows are items, columns are prices and quantities.

Illustration:

        +----------+----------+----------+
        | Name     | Age      | Grade    |  โ† Columns
        +----------+----------+----------+
        | Ada      | 10       | A        |  โ† Row
        | Chidi    | 12       | B        |  โ† Row
        +----------+----------+----------+
    

Mini summary: Data is organised in rows (records) and columns (fields).

๐Ÿ“˜ Lesson 11: Primary Keys and Foreign Keys

Definition: A primary key is a unique identifier for each row in a table. A foreign key is a link to a primary key in another table.

Why is it important? They help connect tables in a relational database.

Simple explanation: A primary key is like a student's ID number โ€“ it's unique for each student. A foreign key is like the class ID that links a student to their class.

Realโ€‘life example: A hospital has patient IDs (primary keys) and doctor IDs (foreign keys).

School example: A student ID is a primary key, and the teacher ID in the class table is a foreign key.

Home example: A family tree โ€“ each person has a unique ID (primary key), and children link to parents (foreign keys).

Nigerian example: NIN is a primary key for citizens, and a bank account number can be a foreign key.

Illustration:

        Students Table
        +----------+----------+----------+
        | ID (PK)  | Name     | Class_ID |
        +----------+----------+----------+
        | 1        | Ada      | 101      |
        | 2        | Chidi    | 102      |
        +----------+----------+----------+

        Classes Table
        +----------+----------+----------+
        | ID (PK)  | Class    | Teacher  |
        +----------+----------+----------+
        | 101      | Math     | Mr. A    |
        | 102      | Science  | Ms. B    |
        +----------+----------+----------+
    

Mini summary: Primary keys identify rows; foreign keys link tables.

๐Ÿ“˜ Lesson 12: Data Backup โ€“ Saving a Copy

Definition: A backup is a copy of data that can be used if the original data is lost or damaged.

Why is it important? Without backups, you could lose all your data โ€“ forever!

Simple explanation: A backup is like making a photocopy of your homework โ€“ if you lose the original, you still have a copy.

Realโ€‘life example: Companies make daily backups of their data to protect against disasters.

School example: Your teacher makes copies of important documents.

Home example: You save your photos to the cloud as a backup.

Nigerian example: Banks make backups of customer data to prevent loss.

Illustration:

        +------------------+          +------------------+
        |  Original Data   |   --     |  Backup Copy     |
        +------------------+          +------------------+
        |  - Database      |   -->    |  - Database      |
        |  - Files         |          |  - Files         |
        +------------------+          +------------------+
    

Mini summary: Backups are copies of data to protect against loss.

๐Ÿ“˜ Lesson 13: Data Archiving โ€“ Storing Old Data

Definition: Archiving means moving old data that is not used often to a special storage area for long-term keeping.

Why is it important? It keeps your main database fast and organised, while still keeping important old data.

Simple explanation: Archiving is like putting your old toys in a box in the attic โ€“ you don't need them every day, but you want to keep them.

Realโ€‘life example: A bank archives old transaction data after 5 years.

School example: A school archives old student records after they graduate.

Home example: You archive old photos that you don't look at often.

Nigerian example: The NIN system archives old citizen records.

Illustration:

        +------------------+          +------------------+
        |  Active Data     |   --     |  Archived Data   |
        +------------------+          +------------------+
        |  - Recent sales  |   -->    |  - Old sales     |
        |  - Current users |          |  - Old users     |
        +------------------+          +------------------+
    

Mini summary: Archiving is moving old data to long-term storage.

๐Ÿ“˜ Lesson 14: Cloud Storage

Definition: Cloud storage is a way to store data on remote servers that are accessible over the internet.

Why is it important? It allows you to access your data from anywhere and ensures it is safe and backed up.

Simple explanation: Cloud storage is like a giant, secure warehouse for your data, managed by a company like Google, Amazon, or Microsoft.

Realโ€‘life example: Google Drive, iCloud, and OneDrive are all cloud storage services.

School example: A school stores assignments and projects in the cloud.

Home example: You store your photos in the cloud so you can see them on any device.

Nigerian example: Many Nigerian companies use cloud services like AWS and Azure.

Illustration:

        Your Device โ†’ Internet โ†’ Cloud Storage
        (Phone)     โ†’ (Wi-Fi)  โ†’ (Google Drive)
    

Mini summary: Cloud storage stores data on remote servers accessible via the internet.

๐Ÿ“˜ Lesson 15: Putting It All Together

Definition: A modern data architecture often uses a combination of databases, data lakes, and data warehouses.

Why is it important? Different types of data need different types of storage.

Simple explanation: You don't store all your things in one box โ€“ you use different boxes for different items. Similarly, data architects use different storage systems for different data.

Realโ€‘life example: A company uses a database for daily transactions, a data lake for raw logs, and a data warehouse for reporting.

School example: A school uses a database for student records, a data lake for all documents, and a data warehouse for performance analysis.

Home example: You use a database for your contacts, a data lake for all your files, and a data warehouse for your budget analysis.

Nigerian example: A fintech uses a database for transactions, a data lake for all logs, and a data warehouse for business intelligence.

Illustration:

        +-------------------------------------+
        |   Modern Data Architecture          |
        +-------------------------------------+
        |  +--------+   +--------+   +------+|
        |  | Database|   |Data Lake|   |DW    ||
        |  |(OLTP)  |   |(Raw)   |   |(Analytics)|
        |  +--------+   +--------+   +------+|
        +-------------------------------------+
    

Mini summary: A complete data architecture uses different storage systems for different needs.

๐Ÿ“š Key Vocabulary

WordSimple Definition
DatabaseAn organised collection of data.
TableData organised in rows and columns.
Relational DatabaseA database with tables connected by relationships.
SQLA language used to talk to databases.
NoSQLA database that stores data without tables.
Data LakeA storage place for raw data.
Data WarehouseA storage place for processed, organised data.
LakehouseA combination of a data lake and a data warehouse.
Primary KeyA unique identifier for a row.
Foreign KeyA link to a primary key in another table.
BackupA copy of data for protection.
ArchiveOld data stored for long-term keeping.
Cloud StorageData stored on remote servers over the internet.

๐Ÿง  Important Concepts

  • Data is organised in databases, data lakes, and data warehouses.
  • Relational databases use tables and SQL.
  • NoSQL databases are flexible and store many data types.
  • Data lakes store raw data; data warehouses store processed data.
  • Backups and archiving are essential for data protection.

๐Ÿ‘ฃ Stepโ€‘byโ€‘Step Explanations

How to choose a storage system

  1. Decide what type of data you have (structured, unstructured, raw).
  2. Decide what you want to do with the data (transactions, analysis, storage).
  3. Choose a database for structured transactional data.
  4. Choose a data lake for raw, large amounts of data.
  5. Choose a data warehouse for organised analysis data.

How to design a simple database table

  1. Decide what you want to store (e.g., students).
  2. List the fields (e.g., name, age, class).
  3. Define a primary key (e.g., student ID).
  4. Create the table with rows and columns.
  5. Add data to the table.

๐ŸŒ Realโ€‘life Examples

  • Amazon: Uses databases for orders, data lakes for logs, and data warehouses for analytics.
  • Netflix: Uses NoSQL databases for movie data and data warehouses for viewing trends.
  • Uber: Uses databases for ride data, data lakes for sensor data, and data warehouses for business intelligence.

๐Ÿ‡ณ๐Ÿ‡ฌ Nigerian Examples

  • NIN System: Uses a database to store citizen information.
  • Paystack: Uses databases for transactions and data lakes for logs.
  • Banking: Uses databases for customer accounts and data warehouses for fraud detection.
  • Jumia: Uses databases for orders and data lakes for customer behaviour.

๐ŸŽฎ Fun Examples Children Can Relate To

  • Game Inventory: A database stores your weapons, health, and achievements.
  • YouTube: A database stores videos; a data lake stores all raw video files.
  • School Timetable: A table with rows for periods and columns for days.

๐Ÿ  Everyday Examples

  • Contact List: A simple database with names and numbers.
  • Shopping List: A table with items and quantities.
  • Photo Album: A data lake for photos; a data warehouse for organised albums.

๐Ÿง‘โ€๐Ÿซ Teacher Notes

This module introduces the key storage concepts in data architecture. Use plenty of visual aids โ€“ tables, diagrams, and comparisons. Encourage students to think about data storage in their daily lives โ€“ contacts, photos, documents. The goal is to build a solid understanding of databases, data lakes, and data warehouses.

๐Ÿ‘ช Parent Tips

Encourage your child to think about how data is stored in their daily lives โ€“ in phones, in the cloud, in notebooks. Discuss the difference between organised storage (warehouse) and raw storage (lake). Help them understand the importance of backups and archiving.

โœจ Interesting Facts

  • The first database system was created in the 1960s.
  • Oracle, MySQL, and PostgreSQL are popular relational databases.
  • Data lakes can store petabytes of data โ€“ that's a million gigabytes!

๐Ÿ’ก Did You Know?

  • Did you know that SQL was first developed in the 1970s?
  • Did you know that Facebook uses both relational and NoSQL databases?
  • Did you know that data lakes are sometimes called "data pools"?

๐Ÿ”” Remember This

  • Databases store organised data in tables.
  • Data lakes store raw data.
  • Data warehouses store processed data for analysis.
  • SQL is the language of databases.
  • Backups and archiving protect data.

โš ๏ธ Common Mistakes

  • Confusing data lakes and data warehouses: Lakes store raw data; warehouses store processed data.
  • Not using primary keys: Every table should have a unique identifier.
  • Not making backups: Always back up important data.
  • Choosing the wrong database type: Use relational for structured data, NoSQL for unstructured data.

โœ… Best Practices

  • Choose the right storage system for your data type.
  • Design tables with clear primary keys and relationships.
  • Regularly back up your data.
  • Archive old data to keep databases fast.
  • Use SQL to query and manage databases efficiently.

๐Ÿ“Š Diagrams & Tables

Storage Comparison Table

FeatureDatabaseData LakeData Warehouse
Data TypeStructuredRaw, unstructuredProcessed, structured
Use CaseTransactionsStorage, explorationAnalytics, reporting
ExampleMySQLAmazon S3Snowflake

Database Table Example

        +----------+----------+----------+----------+
        | ID (PK)  | Name     | Age      | Grade    |
        +----------+----------+----------+----------+
        | 1        | Ada      | 10       | A        |
        | 2        | Chidi    | 12       | B        |
        | 3        | Kofi     | 11       | A        |
        +----------+----------+----------+----------+
    

Data Lake vs Data Warehouse

        +------------------+          +------------------+
        |   Data Lake      |          |  Data Warehouse  |
        |  (Raw Data)      |          |  (Organised Data)|
        +------------------+          +------------------+
        |  - All data      |   ->     |  - Clean data    |
        |  - No structure  |          |  - Structured    |
        |  - Cheap storage |          |  - Optimized     |
        +------------------+          +------------------+
    

๐Ÿ“ Endโ€‘ofโ€‘Module Summary

You have completed Module 2 โ€“ "Storing Data"! You now know about databases, data lakes, and data warehouses. You understand how data is organised in tables and how SQL is used to communicate with databases. You also learned about backups and archiving.

These concepts are the foundation of data architecture. Data architects choose the right storage system based on the type of data and what it will be used for.

Great work โ€“ you are now ready for Module 3!

โ“ Frequently Asked Questions

  1. What is a database? An organised collection of data.
  2. What is SQL? A language to talk to databases.
  3. What is the difference between a data lake and a data warehouse? A lake stores raw data; a warehouse stores processed data.
  4. What is a table? Data organised in rows and columns.
  5. What is a primary key? A unique identifier for a row.
  6. What is a foreign key? A link to a primary key in another table.
  7. What is a backup? A copy of data for protection.
  8. What is archiving? Storing old data for long-term keeping.
  9. What is a lakehouse? A combination of a data lake and a data warehouse.
  10. What is cloud storage? Data stored on remote servers over the internet.

๐Ÿค” Review Questions

  1. What is a database?
  2. What is a table in a database?
  3. What is the difference between a relational database and NoSQL?
  4. What is SQL?
  5. What is a data lake?
  6. What is a data warehouse?
  7. What is the difference between a data lake and a data warehouse?
  8. What is a lakehouse?
  9. What is a primary key?
  10. What is a foreign key?
  11. What is a backup?
  12. What is archiving?
  13. What is cloud storage?
  14. How do you choose the right storage system?
  15. Give an example of a database in Nigeria.

๐Ÿ“ Fillโ€‘inโ€‘theโ€‘Blank

  1. A ______ is an organised collection of data.
  2. Data in a table is organised in ______ and columns.
  3. A ______ database uses tables and relationships.
  4. ______ is the language used to talk to databases.
  5. A ______ stores raw data in its original format.
  6. A ______ stores processed, organised data for analysis.
  7. A ______ combines the features of a data lake and a data warehouse.
  8. A ______ key uniquely identifies a row in a table.
  9. A ______ key links to a primary key in another table.
  10. A ______ is a copy of data for protection.

โœ… True or False

  1. A database is the same as a data lake. (False)
  2. SQL is used to query databases. (True)
  3. A data warehouse stores raw data. (False)
  4. A primary key must be unique. (True)
  5. NoSQL databases use tables. (False)
  6. A backup is not important. (False)
  7. Archiving means deleting old data. (False)
  8. Cloud storage stores data on the internet. (True)
  9. A lakehouse is a new type of storage. (True)
  10. Foreign keys link tables together. (True)

๐Ÿ”˜ Multiple Choice

  1. What is a database?
    A) A collection of photos
    B) An organised collection of data
    C) A type of computer
    D) A programming language
    Answer: B
  2. What is a table in a database?
    A) A type of furniture
    B) Data organised in rows and columns
    C) A programming language
    D) A type of computer
    Answer: B
  3. What is SQL?
    A) A language to talk to databases
    B) A type of computer
    C) A type of data
    D) A type of game
    Answer: A
  4. What is a data lake?
    A) A place to swim
    B) A storage place for raw data
    C) A type of database
    D) A type of computer
    Answer: B
  5. What is a data warehouse?
    A) A storage place for processed data
    B) A place to store raw data
    C) A type of game
    D) A type of computer
    Answer: A
  6. What is a primary key?
    A) A unique identifier for a row
    B) A link to another table
    C) A type of data
    D) A type of computer
    Answer: A
  7. What is a foreign key?
    A) A unique identifier for a row
    B) A link to a primary key in another table
    C) A type of data
    D) A type of computer
    Answer: B
  8. What is a backup?
    A) A copy of data for protection
    B) A type of database
    C) A type of computer
    D) A type of data
    Answer: A
  9. What is archiving?
    A) Deleting old data
    B) Storing old data for long-term keeping
    C) Creating a backup
    D) Organising data
    Answer: B
  10. What is a lakehouse?
    A) A combination of a data lake and a data warehouse
    B) A type of database
    C) A type of computer
    D) A type of data
    Answer: A
  11. What is cloud storage?
    A) Data stored on remote servers
    B) Data stored on a local computer
    C) Data stored in a notebook
    D) Data stored in a data lake
    Answer: A
  12. Which of these is a relational database?
    A) MongoDB
    B) MySQL
    C) Cassandra
    D) Redis
    Answer: B
  13. Which of these is a NoSQL database?
    A) PostgreSQL
    B) MySQL
    C) MongoDB
    D) Oracle
    Answer: C
  14. What is the purpose of a data warehouse?
    A) To store raw data
    B) To analyse and report data
    C) To store transactions
    D) To store logs
    Answer: B
  15. What is the purpose of a data lake?
    A) To store processed data
    B) To store raw data
    C) To run SQL queries
    D) To create reports
    Answer: B

๐Ÿ”— Matching Exercises

TermDefinition
1. DatabaseA. Stores raw data
2. Data LakeB. An organised collection of data
3. Data WarehouseC. A language to query databases
4. SQLD. Stores processed data
5. Primary KeyE. A unique identifier for a row

Answers: 1โ€‘B, 2โ€‘A, 3โ€‘D, 4โ€‘C, 5โ€‘E

โœ๏ธ Short Answer Questions

  1. Explain the difference between a data lake and a data warehouse.
  2. What is SQL and why is it important?
  3. What is the difference between a primary key and a foreign key?
  4. Why are backups important?
  5. What is a lakehouse and what are its benefits?

๐ŸŽญ Scenarioโ€‘based Exercises

Scenario 1: A school wants to store student data. They need a system to track grades, attendance, and contact information. What type of storage would you recommend? Why?

Scenario 2: A company has large amounts of raw data from sensors. They want to store it and later analyse it. What type of storage would you recommend? Why?

๐Ÿ‘ฅ Group Activity

In groups, design a data storage plan for a Nigerian business โ€“ e.g., a bank, a market, or a school. Decide what types of data they need to store, and choose the best storage systems (database, data lake, data warehouse) for each type. Present your plan to the class.

๐Ÿง‘ Individual Activity

Think about a personal project โ€“ e.g., tracking your expenses or organising your photos. Design a data storage plan for your project. Include a database, a data lake, and a data warehouse if needed. Write down your plan and explain your choices.

๐Ÿ’ฌ Classroom Discussion Questions

  1. When would you use a data lake instead of a data warehouse?
  2. Why is SQL so widely used?
  3. What are the advantages of cloud storage?
  4. How does a lakehouse combine the best of both worlds?

๐Ÿ› ๏ธ Mini Project

Design a Database for a School: Create a database with tables for students, teachers, and classes. Define primary keys, foreign keys, and relationships. Write a simple SQL query to find all students in a specific class.

๐Ÿ“‹ Practical Assignment

Create a data storage plan for a small business โ€“ e.g., a retail shop. Include a database for sales, a data lake for logs, and a data warehouse for analytics. Explain why you chose each system.

๐Ÿ† Challenge Exercise

Design a complete data architecture for a Nigerian fintech company. Include databases for transactions, data lakes for logs, and data warehouses for analytics. Also include backup and archiving strategies. Present your design in detail.

๐Ÿ“Œ Quiz Answers

Fillโ€‘inโ€‘theโ€‘Blank: 1. database, 2. rows, 3. relational, 4. SQL, 5. data lake, 6. data warehouse, 7. lakehouse, 8. primary, 9. foreign, 10. backup.

True/False: 1F, 2T, 3F, 4T, 5F, 6F, 7F, 8T, 9T, 10T.

Multiple Choice: 1B, 2B, 3A, 4B, 5A, 6A, 7B, 8A, 9B, 10A, 11A, 12B, 13C, 14B, 15B.

๐ŸŽ Key Takeaways

  • Databases store organised data in tables.
  • Data lakes store raw data; data warehouses store processed data.
  • SQL is the language used to query databases.
  • Primary keys and foreign keys link tables together.
  • Backups and archiving are essential for data protection.

๐Ÿ”œ Preparation for Module 3

In Module 3, you will learn about data modeling โ€“ how to design the structure of your data. You will learn about Entity-Relationship Diagrams (ERDs), normalization, and different types of schemas. To prepare, think about how you would organise data for a project โ€“ what tables would you need, and how would they be connected?

Excellent work, future Data Architect! See you in Module 3!

๐Ÿ† 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.
โ†’