> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What is Database

> Explains what a database is and how structure such as fields, records, tables and types turns raw data into searchable, organized, useful information.

Imagine you're planning a trip.

You saved restaurant names in your Notes app, train times in a [WhatsApp message](https://www.whatsapp.com/), hotel details in an email, and there's a screenshot of your [Airbnb booking](https://www.airbnb.com/) somewhere. On the day of the trip you end up scrolling, searching, and probably swearing.

That's the problem with scattered data: the facts exist, but they're not organized, searchable, or connected. Services like [Booking.com](https://www.booking.com/) keep reservations organized, and your phone reminds you about upcoming flights or hotels—mostly thanks to databases.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/RLKkZePKaK-TmMwI/images/Database-Fundamentals/Introduction/What-is-Database/database-flights-hotels-booking-interface.jpg?fit=max&auto=format&n=RLKkZePKaK-TmMwI&q=85&s=3c5b61add2288bb156414777dad5db07" alt="The image shows a person standing next to a display that includes the word &#x22;database,&#x22; icons for &#x22;Flights&#x22; and &#x22;Hotels,&#x22; and a smartphone screen with the Booking.com interface. There's also an illustration of a person thinking beside a plant." width="1920" height="1080" data-path="images/Database-Fundamentals/Introduction/What-is-Database/database-flights-hotels-booking-interface.jpg" />
</Frame>

In this article we'll answer: what is a database, how structure turns raw data into useful information, and where you already see databases at work.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/RLKkZePKaK-TmMwI/images/Database-Fundamentals/Introduction/What-is-Database/person-database-objectives-cartoon-cat.jpg?fit=max&auto=format&n=RLKkZePKaK-TmMwI&q=85&s=1b0a71f0360a109d7dd75c6188ee0174" alt="The image features a person standing next to a list outlining three objectives about databases, and a cartoon cat character is on the left." width="1920" height="1080" data-path="images/Database-Fundamentals/Introduction/What-is-Database/person-database-objectives-cartoon-cat.jpg" />
</Frame>

By the end you'll understand why databases are everywhere and why their structure matters.

Practical example: Cody's vet visits

Cody was logging her pet's vet visits in [Google Sheets](https://www.google.com/sheets/about/), but entries were inconsistent:

* 17 July, checkup, Vet Adams, \$35
* 23-07-25, vaccination, 45, Vet Clark
* 30 July, Vet Brown, microchip, USD 100

The facts are present, but without headings, consistent ordering, or uniform formatting the sheet quickly becomes hard to search or summarize. The solution is structure: clearly defined headings (fields), consistent data formatting (types), and one record per visit (row).

Start by assigning clear headings: Date, Reason, Vet, Cost. Each heading is a field. Move each piece of data into the proper column so each row becomes a single record.

Next, enforce the right data type for each field to make sorting and querying reliable:

| Field  | Suggested data type      |
| ------ | ------------------------ |
| Date   | `date`                   |
| Reason | `text`                   |
| Vet    | `text`                   |
| Cost   | `number` (or `currency`) |

Other common types include `boolean` (true/false) and `integer` vs `float`. Exact names differ between database systems, but the purpose is the same: ensure the right kind of data goes into each field. Relational databases typically enforce this with a predefined schema; some NoSQL systems allow more flexible or dynamic structures.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/RLKkZePKaK-TmMwI/images/Database-Fundamentals/Introduction/What-is-Database/veterinary-appointment-data-spreadsheet.jpg?fit=max&auto=format&n=RLKkZePKaK-TmMwI&q=85&s=911076d859dad94a02e3c726da6e905a" alt="The image shows a person standing beside a spreadsheet containing veterinary appointment data, including dates, reasons, vets, and costs. The spreadsheet is superimposed on a digital interface with a &#x22;KodeKloud&#x22; logo on the person's shirt." width="1920" height="1080" data-path="images/Database-Fundamentals/Introduction/What-is-Database/veterinary-appointment-data-spreadsheet.jpg" />
</Frame>

With headings and types in place, Cody can:

* sort visits by date,
* filter by reason (e.g., vaccination),
* calculate total spending by summing the `Cost` column.

That's the difference between data and information:

* Data: raw numbers, text, and dates.
* Information: structured, searchable, and meaningful data.

Core database concepts

| Term     | What it means                                                       | Example                                        |
| -------- | ------------------------------------------------------------------- | ---------------------------------------------- |
| Field    | A single column that defines one type of data                       | `Date`, `Name`, `Price`                        |
| Record   | A single row that contains values for all fields                    | One vet visit entry                            |
| Table    | A collection of related records                                     | `VetVisits` table                              |
| Database | One or more tables plus rules and indexes that make data manageable | App backend storing contacts, posts, or orders |

Everyday examples

* Contacts app: each person is a record with fields like name, phone, and email.
* Music playlist: song title, artist, and album are searchable fields.
* Social networks and e-commerce: databases track who follows whom, which photos were posted, product details, prices, reviews, and orders.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/RLKkZePKaK-TmMwI/images/Database-Fundamentals/Introduction/What-is-Database/mobile-music-playlist-app-illustration.jpg?fit=max&auto=format&n=RLKkZePKaK-TmMwI&q=85&s=0bd8ebe1ec6917ad686125ea341c9232" alt="The image shows a person standing next to an illustration of a mobile music playlist app, highlighting aspects like play buttons, song details, and features such as fields, searchability, and filterability." width="1920" height="1080" data-path="images/Database-Fundamentals/Introduction/What-is-Database/mobile-music-playlist-app-illustration.jpg" />
</Frame>

Think about [Instagram](https://www.instagram.com/): over a billion users, each with posts, followers, and messages. Every like, comment, and follow is managed by databases so the app can display the correct feed and let you search for a friend or hashtag.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/RLKkZePKaK-TmMwI/images/Database-Fundamentals/Introduction/What-is-Database/kodyland-instagram-profile-database-slide.jpg?fit=max&auto=format&n=RLKkZePKaK-TmMwI&q=85&s=fe208e2d53f82edb8d519ad7fb1da71b" alt="The image features a presentation slide with a graphic of a phone screen displaying an Instagram-like profile of a cartoon cat named Kodyland. It also includes the word &#x22;Database&#x22; and a person gesturing, likely explaining a concept related to &#x22;WHO follows WHOM.&#x22;" width="1920" height="1080" data-path="images/Database-Fundamentals/Introduction/What-is-Database/kodyland-instagram-profile-database-slide.jpg" />
</Frame>

Similarly, [Amazon](https://www.amazon.com/) lists millions of products and processes hundreds of millions of orders. Product details, prices, inventory, reviews, and orders are tracked and updated in real time—only possible with robust databases.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/RLKkZePKaK-TmMwI/images/Database-Fundamentals/Introduction/What-is-Database/smartphone-amazon-database-icons-diagram.jpg?fit=max&auto=format&n=RLKkZePKaK-TmMwI&q=85&s=805ffda5e1393a38696a87302ed5e483" alt="The image features a smartphone displaying a grid of package icons with &#x22;Amazon&#x22; at the top, alongside text elements related to database functions like &#x22;Product Detail,&#x22; &#x22;Price,&#x22; &#x22;Review,&#x22; and &#x22;Order Placed.&#x22; A person stands beside the display wearing a &#x22;KodeKloud&#x22; shirt, suggesting an educational or professional tech context." width="1920" height="1080" data-path="images/Database-Fundamentals/Introduction/What-is-Database/smartphone-amazon-database-icons-diagram.jpg" />
</Frame>

Without databases it would be chaos: customers couldn't reliably search, see accurate prices, check availability, or have warehouses ship the right items.

Quick quiz

Which statement is true?

A. A field is a full row of data in a table.\
B. A record stores one specific piece of information.\
C. Structure helps turn data into useful information.

Correct answer: C. Structure lets a database organize raw facts into something we can search, sort, and use.

* Option A is backwards: a field is a single column (e.g., `Date` or `Name`).
* A record is a full row that stores all fields for a single entry (e.g., one vet visit).

Summary

* A database is a structured place to store and organize related information.
* Fields (columns) define the type of data; records (rows) hold complete entries.
* Structure—headings, data types, and consistency—turns raw data into useful information.
* Everyday apps (contacts, music, social media, e-commerce) rely on databases to function at scale.

We'll next explain how databases store structured data using keys, indexes, and relationships.

<Callout icon="lightbulb" color="#1CB2FE">
  Databases enforce structure so you can reliably query, sort, and analyze data. Even simple apps depend on this structure to work correctly.
</Callout>

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/database-fundamentals/module/774d0759-f241-4acf-bf3c-3533b24824a4/lesson/13e006a3-c533-4ad0-ad6f-7da048d321ec" />
</CardGroup>
