What is a Database?
Before writing a single line of SQL, you need to understand why databases exist. The answer starts with a problem — and the story of how data management evolved to solve it.
The Problem Databases Solve
Imagine a school that tracks 2,000 students, their courses, grades, and teachers — all in paper files or a stack of spreadsheets. Finding a student's record means searching through hundreds of pages. Updating an address means finding every place that address appears. Adding a new course means editing dozens of files.
This is the problem databases were created to solve. A database is an organised collection of structured information stored and managed so it can be efficiently accessed, updated, and retrieved — by one person or by thousands simultaneously.
A database is a structured set of data held in a computer so that it can be accessed in various ways. The term comes from "data" + "base" — a foundation or repository for storing information.
Data vs Information vs Knowledge
These three terms are often confused. Understanding the distinction helps clarify what databases actually store and why organisation matters.
21, Kondwani, 2025-03-01. Alone, these are meaningless.Databases store data. Applications turn that data into information. Humans use that information to build knowledge.
Before Databases — File-Based Systems
Before databases existed, applications stored data in flat files — text files or binary files on a hard drive. Each application managed its own files. This caused serious problems that led directly to the invention of the modern database.
What a Database Provides
A database system addresses every problem listed above by centralising data management and providing a controlled interface between the data and the applications that use it.
FILE-BASED SYSTEM DATABASE SYSTEM
──────────────────────── ──────────────────────────
Data scattered in files → Data centralised, one place
Redundant copies → Single source of truth
Manual consistency → Enforced by constraints
One user at a time → Thousands of concurrent users
All-or-nothing security → Fine-grained permissions
No backup system → Built-in recovery tools
Custom query code → Standard query language (SQL)
Databases in the Real World
Every digital system you use daily relies on databases. They are the silent infrastructure of the modern world.