Database Management Systems and RDBMS Fundamentals

Fundamentals of Databases

A database is an organized collection of related information, such as phone contacts, student records, or library catalogues, designed to store facts for easy retrieval and updates. While a flat file stores data in a single table or spreadsheet, often resulting in data duplication and difficulty in management, a database provides a structured framework to handle growing datasets efficiently.

Database Management Systems (DBMS)

A DBMS is software used to create, organize, and manage data securely. Common examples include LibreOffice Base, Microsoft Access, and MySQL. A DBMS improves data integrity by removing duplicates, ensuring consistency across the system, and allowing multiple users to access and process large amounts of information simultaneously within a secure environment.

Table Components and Data Integrity

Data is structured into tables composed of fields and records. A field is a column that stores a specific type of detail, while a record is a row containing all information about a single item. Each field must be assigned a specific data type, such as Text, Number, Date/Time, Currency, Yes/No, or Memo. Using correct data types prevents incorrect entries, optimizes storage space, and enables accurate calculations and sorting.

Relational Databases and Key Constraints

A Relational Database Management System or RDBMS manages data across related tables to reduce redundancy. These tables are linked using keys: a Primary Key is a unique field that identifies each record and cannot be left empty, while a Foreign Key is a field in one table that matches the Primary Key of another. These connections ensure data consistency and protect the database from broken links between related records.