Database Terminology: Tables, Records, and Fields
Master the fundamental building blocks of database design — essential knowledge for CSEC IT success!
The Anatomy of a Table (Entity)
The Big Picture
What is a Table? In database terminology, a Table (also called an Entity) is like a digital container that holds all the data about a specific subject. Think of it as a dedicated folder where you organize information about one particular thing — whether it's students, products, library books, or customer orders.
Every well-designed database contains multiple tables, with each table focusing on one specific type of information. For example, a school database might have separate tables for Students, Teachers, Courses, and Grades. This separation prevents混乱 (chaos) and keeps data organized!
The Grid Structure
Tables have a simple but powerful 2D layout made up of:
- Columns (running vertically) — These represent different categories of information
- Rows (running horizontally) — These represent individual entries or items
Together, columns and rows create a grid where every piece of data has its perfect place, making information easy to find and update.
Click the buttons to switch between different tables and see how column headers change!
| Student_ID | First_Name | Last_Name | Grade_Level | |
|---|---|---|---|---|
| STU001 | Jordan | Williams | 10 | jordan.w@school.edu |
| STU002 | Ashley | Brown | 11 | ashley.b@school.edu |
| STU003 | Marcus | Johnson | 10 | marcus.j@school.edu |
Columns: Understanding "Fields" (Attributes)
What is a Field?
A Field (also called an Attribute) represents a single, specific category of information within a table. If a table is like a spreadsheet, then fields are the vertical columns — each one storing one type of data for every record in the table.
For example, in a Student table, you might have separate fields for Student ID, First Name, Last Name, Date of Birth, and Email Address. Each field holds one piece of the puzzle!
Naming Conventions: Best Practices
How you name your fields matters! Database software uses field names to organize and access data, so follow these rules to avoid errors:
- Use underscores instead of spaces — Write "First_Name" instead of "First Name"
- Be specific — "Email" is better than just "Name" which is too vague
- Start with letters, not numbers — "Student1_ID" is okay, but "1st_Student_ID" will cause problems
- Avoid special characters — Don't use @, #, $, or % in field names
Click on each input box in the form to see how it corresponds to a field in the database table!
User Registration Form
Field Mapping (Click form fields above):
Rows: Understanding "Records" (Tuples)
What is a Record?
A Record (also called a Tuple or Row) is a complete set of related data for ONE specific item or person in a table. While a field stores one type of information across many items, a record gathers all the information about ONE item.
Think of it this way: if each field is like a filing cabinet drawer (holding one type of file), then each record is a complete folder containing all the documents for one person.
The Horizontal Connection
Records run horizontally across the table. When you look at a row from left to right, you're seeing all the different fields that describe one specific entity. All the data in that single row belongs together — it's information about one thing!
The power of records is in their completeness — one glance at a row tells you everything about a single student, product, or order.
Move your mouse over any row to highlight the entire record! Notice how all the data in that row belongs together.
| Book_ID | Title | Author | ISBN | Status |
|---|---|---|---|---|
| B001 | The Great Gatsby | F. Scott Fitzgerald | 978-0743273565 | Available |
| B002 | To Kill a Mockingbird | Harper Lee | 978-0446310789 | Checked Out |
| B003 | 1984 | George Orwell | 978-0451524935 | Available |
| B004 | Pride and Prejudice | Jane Austen | 978-0141439518 | Available |
| B005 | The Catcher in the Rye | J.D. Salinger | 978-0316769488 | Checked Out |
Uniqueness: The Primary Key
What is a Primary Key?
A Primary Key is a special field that uniquely identifies each record in a table. No two records can have the same Primary Key value — it's like each record gets its own exclusive ID number that nobody else can use.
Why Do We Need Primary Keys?
Imagine a school with two students both named "John Brown." Without a Primary Key, how would the database tell them apart? The Primary Key solves this "Data Confusion" problem by giving each student a unique identifier, like a Student ID number that never repeats.
Examples of Primary Keys
- Student IDs — Every student gets a unique number like STU001, STU002, etc.
- ISBN Numbers — Every book has a unique International Standard Book Number
- Social Security Numbers — Each person has a unique government-issued number
- Email Addresses — In user tables, email often serves as the unique identifier
Enter your name and the tool will assign you a unique ID — just like a database does!
Connecting the Dots: Foreign Keys
What is a Foreign Key?
A Foreign Key is a field in one table that links to the Primary Key of another table. It creates a "bridge" between tables without having to repeat all the information.
The Purpose of Foreign Keys
Imagine you have a Customers table and an Orders table. Instead of copying all the customer's information (name, address, phone) into every single order, you simply include the Customer ID as a Foreign Key in the Orders table. This:
- Saves storage space
- Prevents data inconsistency (no conflicting addresses)
- Creates logical relationships between data
Click on a row in the Orders table to link it to the matching customer!
Structure vs. Data (The Transition)
Understanding the Schema
Now that you understand Fields (columns) and Tables, it's important to distinguish between the structure of a database and the data inside it.
Think of it this way: Defining Fields and Tables is like building a bookshelf. You're creating the structure — deciding how many shelves you need, how wide they should be, and what categories each shelf will hold. The Schema (the blueprint of your database structure) tells the computer exactly what kind of information you'll be storing.
The actual data is like the books you put on the shelf. Once the structure is built, you can add, remove, or update books (records) without changing the shelf design itself.
Schema
The blueprint or structure that defines how data is organized — tables, fields, and relationships
Data
The actual values stored in the database — the content within the structure
Instance
A snapshot of data in the database at a specific moment in time
Coming Soon: Data Types!
While Fields tell us what we are storing, Data Types tell the computer how to read that information. Is it a number? A date? A true/false value? Find out in our next article!
CSEC Checkpoint: Terminology Match-Up
Technical Term vs. Common Name
Database terminology can be confusing because the same concept has different names! Match the formal CSEC term to its common name:
Drag each technical term to its common name!
Common Name
Common Name
Common Name
Quick Quiz
Test your knowledge by identifying the parts of a database table!
Answer the questions below. You have 15 seconds per question!
