Simple Database Table Example

Eugene Jul 31, 2026

In the realm of data management, databases play a pivotal role, and understanding their structure is fundamental. A simple database table is the building block of any database, and mastering its components can unlock a world of organized data. Let's delve into a simple example to illustrate this.

What is a Table in SQL? (Beginner Guide)
What is a Table in SQL? (Beginner Guide)

Imagine you're managing a library. You'd want to keep track of books, their authors, and possibly even their availability. This is where a simple database table comes into play.

SQL Query for Rows Count of All Tables on Greenplum Database
SQL Query for Rows Count of All Tables on Greenplum Database

Books Database Table

The 'Books' table is our starting point. It's designed to store information about books in our library.

Database First Steps - Access 101 - Create your first database
Database First Steps - Access 101 - Create your first database

Here's a simple representation of what this table might look like:

BookIDTitleAuthorAvailable
1The Catcher in the RyeJ.D. SalingerYes
2To Kill a MockingbirdHarper LeeNo
Table With Vertical & Horizontal Highlight - Free HTML/CSS Table Template 2026 - Colorlib
Table With Vertical & Horizontal Highlight - Free HTML/CSS Table Template 2026 - Colorlib

Table Schema

The 'Books' table has four columns, each representing a different attribute of a book:

  • BookID: A unique identifier for each book.
  • Title: The name of the book.
  • Author: The author of the book.
  • Available: A boolean value indicating whether the book is currently available for checkout.
how to create html table | HTML TABLE TAG
how to create html table | HTML TABLE TAG

Rows and Data

Each row in the table represents a different book. The data in each cell corresponds to the attribute of the book represented by the column header.

For instance, the first row tells us that 'The Catcher in the Rye' by J.D. Salinger is currently available for checkout, as indicated by the 'Yes' in the 'Available' column.

Database Normalization โ€“ Normal Forms 1nf 2nf 3nf Table Examples
Database Normalization โ€“ Normal Forms 1nf 2nf 3nf Table Examples

Authors Database Table

While our 'Books' table is quite comprehensive, it might be beneficial to have a separate table for authors to avoid redundancy.

Create Sample Database on Amazon Redshift Cluster with Sample Data
Create Sample Database on Amazon Redshift Cluster with Sample Data
Remodel Poorly Designed SQL Server Database Tables
Remodel Poorly Designed SQL Server Database Tables
SQL CTE Explained with Examples | Common Table Expression Tutorial
SQL CTE Explained with Examples | Common Table Expression Tutorial
the list of users is shown in this screenshot
the list of users is shown in this screenshot
Table concept
Table concept
SQL Subqueries Explained with Examples | Beginner SQL Tutorial
SQL Subqueries Explained with Examples | Beginner SQL Tutorial
Table
Table
๐Ÿงพ How to Create Tables in HTML
๐Ÿงพ How to Create Tables in HTML
SQL ROW_NUMBER() Explained with Examples | Beginner SQL Window Function Tutorial
SQL ROW_NUMBER() Explained with Examples | Beginner SQL Window Function Tutorial
the order details page is shown in this screenshote image, with several people on it
the order details page is shown in this screenshote image, with several people on it
Database Normalization โ€“ Normal Forms 1nf 2nf 3nf Table Examples
Database Normalization โ€“ Normal Forms 1nf 2nf 3nf Table Examples
SQL LAG() Explained with Examples | Beginner SQL Window Function Tutorial
SQL LAG() Explained with Examples | Beginner SQL Window Function Tutorial
Point of Sales and Inventory System Database Design
Point of Sales and Inventory System Database Design
Design a Form Filling Database Using Microsoft Access.
Design a Form Filling Database Using Microsoft Access.
SQL ORDER BY Explained with Examples | Sort Data in SQL
SQL ORDER BY Explained with Examples | Sort Data in SQL
The Ultimate Guide to Designing Data Tables
The Ultimate Guide to Designing Data Tables
a diagram showing the different types of items for sale
a diagram showing the different types of items for sale
SQL GROUP BY Explained Visually (Beginner-Friendly Guide)
SQL GROUP BY Explained Visually (Beginner-Friendly Guide)
Data Table UI Design Guide & 30+ Examples
Data Table UI Design Guide & 30+ Examples
CSS Tables: Best Free Responsive Data Templates
CSS Tables: Best Free Responsive Data Templates

Here's what an 'Authors' table might look like:

AuthorIDName
1J.D. Salinger
2Harper Lee

Table Schema

The 'Authors' table has two columns:

  • AuthorID: A unique identifier for each author.
  • Name: The name of the author.

Rows and Data

Each row in the table represents a different author. The data in each cell corresponds to the attribute of the author represented by the column header.

In this table, we can see that 'J.D. Salinger' and 'Harper Lee' are both authors in our library, with unique IDs of 1 and 2 respectively.

Understanding these simple database tables is the first step in managing and organizing data effectively. It's a fundamental skill that opens doors to more complex database structures and management systems. So, why not start exploring and practicing with these simple examples today?