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

Module Seven

๐Ÿ“– 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.
8

Module 7: Introduction to Databases

Module Overview

Have you ever wondered how schools store students' names, examination scores, and attendance records? How does a supermarket remember the products it sells and the amount of money customers pay?

These activities often involve databases. A database helps people organise, store, manage, and retrieve information. In this module, you will learn what databases are, how they work, and why they are important when working with data and dashboards.

Learning Objectives

By the end of this module, you should be able to:

  • Explain what a database is.
  • Understand why databases are important.
  • Identify examples of databases used in everyday life.
  • Understand tables, rows, columns, and records.
  • Identify common types of databases.
  • Understand how databases support data analysis and dashboards.

1. What Is a Database?

A database is an organised collection of information that can be stored, accessed, updated, and managed using a computer system.

Imagine a school with 1,000 students. The school needs to keep records of every student's name, age, class, examination scores, and attendance. Keeping all this information in notebooks would be difficult.

Instead, the school can use a database to store the information electronically. This makes it easier to search for a student's record, update information, and prepare reports.

Simple definition: A database is like a digital filing cabinet that keeps information organised.

2. Examples of Databases in Everyday Life

You probably use services that depend on databases without even realising it.

A. School Database

Schools use databases to store student information such as:

  • Students' names and identification numbers.
  • Classes and subjects.
  • Examination scores.
  • Attendance records.
  • Parents' or guardians' contact information.

B. Bank Database

Banks use databases to manage customer information and financial records. These may include:

  • Customer account information.
  • Transaction records.
  • Account balances.
  • Payment history.

C. Supermarket Database

A supermarket in Ibadan can use a database to manage:

  • Product names and prices.
  • Available stock.
  • Daily sales.
  • Customer orders.

D. Hospital Database

Hospitals use databases to organise patient appointments, medical records, and other important information. Such information must be protected from unauthorised access.

3. Understanding Database Tables

One common way to organise information in a database is by using tables. A table stores related information in rows and columns.

Let's look at an example of a student database.

Student ID Student Name Class Score
ST001 Adebayo JSS 2 85
ST002 Chinonso JSS 2 78
ST003 Fatima JSS 3 92
ST004 Samuel JSS 1 74

There are four important parts to understand:

  • Table: A collection of related information, such as student records.
  • Column: A category of information, such as Student Name or Score.
  • Row: A single line of information about one student.
  • Record: The complete information stored about one student.

4. Understanding Fields and Primary Keys

What Is a Field?

A field is one category of information stored in a database table. For example, Student Name, Student ID, Class, and Score are fields in our student database.

What Is a Primary Key?

A primary key is a field used to identify each record uniquely in a database table.

In our student table, Student ID can serve as the primary key because every student has a different identification number.

Example:

  • Adebayo has Student ID ST001.
  • Chinonso has Student ID ST002.
  • Fatima has Student ID ST003.

Even if two students have the same name, their Student IDs can help the school identify them correctly.

5. Common Types of Databases

Databases can be organised in different ways depending on how information needs to be stored and accessed.

A. Relational Database

A relational database stores information in tables that can be connected using related fields.

For example, a school may have one table for students and another table for examination results. Both tables can be connected using Student ID.

B. Document Database

A document database stores information in document-like formats. It is useful when information does not always follow the same table structure.

C. Cloud Database

A cloud database is hosted on cloud computing infrastructure. It can allow authorised users and applications to access information over the internet.

D. Spreadsheet-Based Data Storage

Programs such as Microsoft Excel and Google Sheets can organise information in rows and columns. They are useful for small data tasks, although they are not the same as full database management systems.

6. What Is a Database Management System (DBMS)?

A Database Management System, also called a DBMS, is software used to create, organise, manage, and access databases.

Think of a database as a digital storehouse. The DBMS is the software that helps people manage what is inside it.

Examples of database management systems include:

  • MySQL.
  • PostgreSQL.
  • Microsoft SQL Server.
  • Oracle Database.
  • SQLite.
  • MongoDB.

For example, a website can use MySQL to store user accounts, course information, examination results, and other records.

7. How Databases Support Data Analysis and Dashboards

Databases are important in data analysis because they help organisations store large amounts of information in an organised way.

A data analyst can retrieve information from a database, study it, calculate important figures, and display the results on a dashboard.

Example: A school performance dashboard

  1. The school stores students' examination scores in a database.
  2. The analyst retrieves the examination records.
  3. The analyst calculates average scores and pass rates.
  4. The results are displayed using charts and KPI cards.
  5. The school uses the dashboard to understand student performance.

This shows how databases, data analysis, and dashboards work together.

8. Practical Activity: Design Your Own Student Database

Imagine that you are helping a school in Lagos organise its student records.

Your task is to design a simple database table containing information about five students.

Your table should include these fields:

  • Student ID.
  • Student Name.
  • Age.
  • Class.
  • Examination Score.

Example table:

Student ID Student Name Age Class Score
ST001 David 13 JSS 2 80
ST002 Mary 12 JSS 1 75
ST003 Daniel 14 JSS 3 90
ST004 Aisha 13 JSS 2 85
ST005 Peter 12 JSS 1 70

Answer these questions:

  1. How many records are in the table?
  2. How many columns are in the table?
  3. Which field can be used as the primary key?
  4. Which student has the highest examination score?
  5. Why is a database better than keeping hundreds of student records in separate notebooks?

Module Summary

In this module, you have learned that:

  • A database is an organised collection of information.
  • Databases are used by schools, banks, hospitals, and businesses.
  • Tables organise information into rows and columns.
  • A row contains a record, while a column contains a field.
  • A primary key uniquely identifies each record in a table.
  • A DBMS is software used to manage databases.
  • Databases provide information that can be analysed and displayed on dashboards.

Knowledge Check

Test your understanding by answering these questions:

  1. What is a database?
  2. What is the difference between a row and a column?
  3. What is a database record?
  4. What is the purpose of a primary key?
  5. Which of these is a database management system: MySQL or Microsoft Word?
  6. Give two examples of organisations that use databases.
  7. How can a database help a data analyst create a dashboard?
  8. What does DBMS stand for?

Congratulations!

You have completed Module 7: Introduction to Databases. You now understand how information is stored and organised in databases, and how databases support data analysis and dashboard creation.

In the next module, you will bring together what you have learned about dashboards, charts, KPIs, and data to complete a practical dashboard project.

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