Photo AI
Last Updated Sep 27, 2025
Revision notes with simplified explanations to understand Relational Databases quickly and effectively.
492+ students studying
A database is an organised collection of structured data, designed to store, manage, and retrieve information efficiently. Databases are widely used in applications to hold large amounts of data in a structured way, making it easy to search, update, and maintain. A relational database specifically organises data into tables, which can be linked or "related" to one another.
This note will explain database terminology, the differences between flat file and relational databases, and the benefits and limitations of each approach.
A flat file database stores all data in a single table or file, often in a format like a spreadsheet or text file (e.g., CSV).
All data is contained in one place, with fields organised in columns and records in rows. Benefits:
Simple structure, suitable for small amounts of data.
Easy to implement and requires minimal resources. Limitations:
Redundant data: Duplicate data is common because relationships between records are not represented.
Difficult to scale: As data grows, flat files become harder to manage and maintain.
Poor data integrity: Data can be inconsistent, with no standard way to ensure data accuracy.
A relational database organises data into multiple tables with defined relationships between them.
Uses a structure based on primary and foreign keys to link tables, reducing data redundancy and ensuring data integrity. Benefits:
Reduces redundancy by storing related data in separate tables, preventing duplicate data.
Enhances data integrity and consistency through relationships and constraints.
Scalable and efficient, allowing complex queries and easy maintenance of large datasets. Limitations:
More complex to set up, requiring careful planning and understanding of data relationships.
Can be resource-intensive, as relational databases require more processing power and memory than flat files.
Consider a single "Students" file with all student information, including course enrollment:
| Student_ID | Name | Course | Enrollment_Date |
|------------|------------|--------------|------------------|
| 101 | Alice Smith| Mathematics | 2023-09-01 |
| 102 | Bob Jones | Biology | 2023-09-01 |
| 103 | Alice Smith| Biology | 2023-09-02 |
In this example, "Alice Smith" appears twice, leading to redundancy.
In a relational database, you could have two tables: "Students" and "Courses." Students Table
| Student_ID | Name |
|------------|------------|
| 101 | Alice Smith|
| 102 | Bob Jones |
Courses Table
| Course_ID | Course | Student_ID | Enrollment_Date |
|------------|--------------|------------|------------------|
| 201 | Mathematics | 101 | 2023-09-01 |
| 202 | Biology | 101 | 2023-09-02 |
| 203 | Biology | 102 | 2023-09-01 |
By separating "Students" and "Courses" into two tables, we reduce redundancy and improve data integrity.
Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!
70 flashcards
Flashcards on Relational Databases
Revise key concepts with interactive flashcards.
Try Computer Science Flashcards7 quizzes
Quizzes on Relational Databases
Test your knowledge with fun and engaging quizzes.
Try Computer Science Quizzes29 questions
Exam questions on Relational Databases
Boost your confidence with real exam questions.
Try Computer Science Questions27 exams created
Exam Builder on Relational Databases
Create custom exams across topics for better practice!
Try Computer Science exam builder12 papers
Past Papers on Relational Databases
Practice past papers to reinforce exam experience.
Try Computer Science Past PapersDiscover More Revision Notes Related to Relational Databases to Deepen Your Understanding and Improve Your Mastery
96%
114 rated
Databases
Capturing, Selecting, Managing & Exchanging Data
354+ studying
194KViewsJoin 500,000+ A-Level students using SimpleStudy...
Join Thousands of A-Level Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!
Report Improved Results
Recommend to friends
Students Supported
Questions answered