No history yet

Introduction to Databases

What Is a Database?

Think of a database as a highly organized digital filing cabinet. It’s a system designed specifically to store, manage, and retrieve vast amounts of information efficiently. Instead of shuffling through stacks of paper or endless spreadsheets, you can use a database to keep everything tidy and accessible.

From the inventory of a grocery store to the contacts list on your phone, databases are working behind the scenes. They provide a structured way to handle information, ensuring that data is not only stored safely but can also be found and used quickly. This organization is what makes modern applications and websites possible.

Lesson image

Relational Databases

One of the most common types of databases is the relational database. The name comes from the way it organizes information: in tables that can be related to one another. Imagine you have one list of customers and another list of orders. A relational database can link a customer to all the orders they've placed.

This is all managed by a special piece of software called a Relational Database Management System, or RDBMS. Think of the RDBMS as the librarian. It knows where every piece of information is stored and how to find it for you. Popular examples of RDBMS software include MySQL, PostgreSQL, and SQL Server.

An RDBMS is the software that lets you create, update, and manage a relational database.

The Building Blocks

Relational databases have a simple, powerful structure based on three key components: tables, columns, and rows. Understanding these is the first step to understanding how to work with data.

Let's break that down.

Table

noun

A collection of related data organized into rows and columns. In our example, the Books table holds all the information about books.

Column

noun

A vertical set of data of a single type, representing an attribute of the table. The Title column contains only book titles.

Row

noun

A single record in a table, representing one item. Each row in the Books table represents one specific book.

This simple structure is incredibly flexible. By organizing data into tables, we create a predictable system that makes it easy to store, find, and combine information. It provides the foundation upon which we can build powerful queries to answer complex questions.

Now that you understand the basic structure of a database, let's test your knowledge.

Quiz Questions 1/5

What is the primary purpose of a database?

Quiz Questions 2/5

A relational database gets its name from its ability to link information from different tables together.

With these concepts in mind, you're ready to learn the language used to interact with these databases.