Databases: Relational Design, Normalisation, DBMS and SQL A Level Computer Science lesson
Why files are not enough, how a relational database fixes that, how to draw and normalise a design to third normal form, what a DBMS provides, and how to write SQL to define tables and to query and change data.
In short: When asked for limitations, give a fact and its consequence: "the same address is stored in several files, so if one is updated and the others are not the data is inconsistent". A bare list of the six headings scores less than two developed points.
What this lesson covers
About this lesson
Databases: Relational Design, Normalisation, DBMS and SQL is a 22-part A Level Computer Science lesson. Each part makes one point and then hands over to the next, so it can be read in a sitting or picked up again at the part you stopped on. It defines the idea in plain words before using it, works through an example step by step, breaks the topic into its parts and compares them, shows where it is used outside the textbook, names the mistakes that cost marks in an exam.
How it begins
In a file-based approach each program or department keeps its own data files: a fees file, a library file, a transport file. It is simple to start, and for a small, single-purpose job it can be enough. As soon as the data is shared, its weaknesses show.
The 22 parts
- 1The limits of a file-based approach
- 2How a relational database fixes them
- 3Relational terminology
- 4Relationships, referential integrity and indexing
- 5Entity-relationship diagrams
- 6Drawing the relationships: one-to-one, one-to-many, many-to-many
- 7What normalisation is, and the three normal forms
- 8Worked example: normalising an order form to 3NF
- 9Explaining why tables are, or are not, in 3NF
- 10Producing a normalised design from a description
- 11Check yourself: database concepts
- 12What a DBMS provides
- 13The DBMS tools: developer interface and query processor
- 14Check yourself: the DBMS
- 15DDL, DML and SQL
- 16Writing DDL: creating a database and its tables
- 17Writing DML: SELECT, WHERE, ORDER BY
- 18Totals and groups: SUM, COUNT, AVG and GROUP BY
- 19Using two tables: INNER JOIN
- 20Maintaining data: INSERT, UPDATE and DELETE
- 21Common mistakes in SQL
- 22Check yourself: DDL, DML and SQL
This topic needs a subscription
This lesson is part of a paid plan. Create a free account to start with our free lessons, or subscribe to open every topic.
- 🆓 Free lessons are open on any account
- 📗 Monthly: 5 paid topics a month
- 📘 Yearly: 7 paid topics a month
- ⭐ Premium, every topic, unlimited
- 🧺 Or buy this single topic, the lesson is included
Practise Databases
Everything on QuizByt for A Level Computer Science that goes with this lesson: read it first, then test yourself while it is fresh.
🧠 5 quizzes on Databases (1 easy, 2 medium, 2 hard)
Work up from easy to hard: the hard quizzes ask the A Level exam-style questions on Databases.
🖨️ Printable worksheet
Databases on paper for A Level, with room to write the working out. Preview the first page free.
🎮 Games for A Level Computer Science
Memory and reasoning games at the right level for A Level. Passing a quiz on Databases earns the credits that open them.