Database Terminology
Master Essential Database Concepts and Structure Fundamentals
Core Database Components
Database Management Systems
Software platforms like Microsoft Access, MySQL, and Microsoft SQL Server that organize and store data electronically in structured formats.
Data Organization
Information is systematically arranged into rows, columns, and tables to enable easy access, management, and updates of stored data.
Structured Storage
Electronic storage system that maintains data integrity and provides efficient retrieval mechanisms for various data types and relationships.
A table represents data through columns (fields) and rows (records), with each table containing unique characteristics and storing the same data type in each row.
Understanding Table Components
Columns as Fields
Each column represents a specific data field that defines one piece of information you want to track in your database structure.
Rows as Records
Each row contains a combination of column values that together form a complete record representing one entity or item.
Data Type Consistency
Tables maintain unique characteristics and store the same type of data in each row to ensure structural integrity and consistency.
Data Field Types and Characteristics
String Values
Text-based data fields that store alphanumeric characters, names, descriptions, and other textual information in the database structure.
Numeric Values
Fields designed to store mathematical data including integers, decimals, and other numerical information for calculations and analysis.
Date and Time Values
Specialized fields that handle temporal data, storing dates, times, and timestamps with proper formatting and validation rules.
Database Relationship Types Comparison
| Feature | Relationship Type | Structure | Use Case |
|---|---|---|---|
| One to Many | One record in Table A connects to multiple records in Table B | Most common relationship type | |
| Many to Many | Multiple records in both tables with Join Table required | Complex data associations | |
| One to One | Single record connects to single record in another table | Security and organization purposes |
When implementing Many to Many relationships, the Join Table contains only unique values and uses a composite primary key combining the primary keys from both related tables.
Implementing Table Relationships
Identify Common Fields
Determine which fields will serve as the connection points between tables to establish meaningful relationships.
Choose Relationship Type
Select the appropriate relationship type based on how many records in each table should connect to records in the related table.
Create Join Tables if Needed
For Many to Many relationships, create a separate Join Table that will manage the connections between the two primary tables.
Primary Key vs Foreign Key
| Feature | Primary Key | Foreign Key |
|---|---|---|
| Purpose | Unique ID for internal tracking | Points back to Primary Key in another table |
| Uniqueness | Each value unique to table | Can have duplicate values |
| Null Values | Cannot be null | Can be null in some cases |
| Quantity per Table | Only one per table | Multiple foreign keys allowed |
Primary Key Best Practices
Establishes clear table structure and improves database organization and readability
Prevents data entry errors and maintains reliability compared to external identifiers like Social Security numbers
Maintains data integrity and enables proper relationship building between related tables
External identifiers like Student IDs may seem unique but can introduce unexpected data entry errors
Never use actual data like Social Security numbers or Student IDs as Primary Keys. These external values can produce data entry errors despite appearing unique and reliable.
Key Takeaways