AQA GCSE Computer Science: Topic 3.7 Relational Databases and SQL Revision
Welcome to your ultimate revision guide for aqa gcse computer science. In this digital age, learning to store information efficiently is a core programming skill. Whether you are a student preparing for your paper or studying for a-level, mastering databases and structured query language is essential for the official specification.
What is a Database in GCSE Computer
Science?
According to industry leaders like Oracle, a database is an organized collection of structured information, or data, typically stored electronically. In the context of your GCSE, a database is a system designed to store and retrieve data reliably without losing or corrupting files.
Where are Databases Used in Real-World Applications?
Real-world systems process massive volumes of information daily. For instance, the UK’s NHS Spine processes over 1 billion messages a month across its database network to manage patient health records. On a smaller scale, your school’s Management Information System (MIS) uses a database to track attendance and grades for over 1,500 individual student records.
What are the Different Types of Databases?
Historically, organizations used “flat-file” databases (similar to a single CSV spreadsheet). While fine for 50 rows of data, a flat-file fails at scale due to duplication. Today, modern applications rely on a relational database and structured query commands to manage complex, interconnected systems.
Key Concepts of Databases and Structured Query Language
A relational database allows you to organise information into a logical structure. You can link one table to another table using a defined relationship. A well-designed relational database makes the storage of data highly efficient, scalable, and secure.
Database Structure: Table, Record, and Field
The foundation of any database is its table. Each table holds a specific category of data.
- Table: The main entity (for example, a student table containing 300 students).
- Record: A single horizontal row in the table containing a complete set of data for one entity (e.g.,
101, Alice, Smith). - Field: A vertical column in the table representing a specific attribute (e.g., the
Surnamecolumn).

What are Primary and Foreign Keys in Databases?
To identify a unique record in a table, we use a primary key. The primary key is a unique identifier for each record (such as a StudentID of 10452).
To relate tables, we use a foreign key. A foreign key is a field in one table that creates a link to the primary key in another table. This is the core concept of relational databases and structured query operations.

Preventing Data Redundancy and Data Inconsistency
When you create a table, you must assign data types to each field. Selecting the correct data types ensures the value entered into the database is valid.
A major benefit of this setup is reducing data redundancy (the unnecessary duplication of data). For example, storing a student’s address in 5 different tables wastes storage space.
By minimizing data redundancy, you prevent data inconsistency—a fatal error where the same piece of information has a different value in different places across the database (e.g., an old address in one table and a new one in another).
What is SQL and How is it Used in AQA GCSE Computer Science Databases?
SQL stands for Structured Query Language. A query is a request for information from a database. As a gcse computer science student, you must learn to write sql to manage data within a relational database.
Standard Query Language Commands for Managing Data
According to AQA’s official examiner reports, students frequently lose marks on exact syntax. An SQL question on Paper 2 is typically worth 4 to 6 marks. Using query language, you can manipulate any table. Every exam question will test these sql commands:
- SELECT: Used to query and retrieve data from a table. (e.g.,
SELECT Surname FROM student_table) - UPDATE: Used to update a record or a specific value.
- INSERT: Used to create a new record.
- DELETE: Used to delete data from a database.
Mastering Relational Databases and Structured Query for Exams
Statistics from Ofqual indicate that Computer Science is rigorously graded, with only about 24-26% of candidates typically achieving a Grade 7 or above nationally. Many students ask if it is a difficult subject, but by mastering logical core concepts like databases and structured query language early on, the topic becomes highly manageable and predictable.

How Can I Achieve a High Grade in GCSE Computer Science Database Topics?
To cement your study of this topic, we recommend using flashcards, reviewing our terminology glossaries, and tackling questions by topic. Practicing with past gcse aqa computer science papers is the best way to prepare for the exact question formats on the real paper.
Database Topic Video Summary and Practice Resources
Watch our video summary below to see these aqa computer science concepts in action. You can also download our pd (PDF) resource guide for offline practice. Good luck with your aqa gcse computer science exams!








