Normalisation
Imagine storing every club booking in one table, with the coach repeated on every row: each booking of the Chess club would carry "Mr Ng" again and again.
That repetition causes problems. If Mr Ng leaves, you must update many rows; miss one and the data becomes inconsistent. Normalisation organises tables to remove this kind of redundancy.

You normalise in steps:
- 1NF — every cell holds a single value (no lists or repeating groups), and the table has a primary key.
- 2NF — already 1NF, and no non-key column depends on only part of a composite key.
- 3NF — already 2NF, and no non-key column depends on another non-key column (no transitive dependency).
In the one-table version, coach depends on the club, not on the booking — a transitive dependency, so it is not in 3NF.
We split the data into two tables (the ones loaded here):
club(club_id, name, coach)— each club and its coach, stored once.booking(booking_id, student, club_id)— each booking, linked by the foreign keyclub_id.
Now a coach is stored once. A JOIN puts the information back together whenever you need it — write that join below.
- Split repeating groups into their own table instead of many similar columns.
- Each table should describe one kind of thing.
Dificultad 3/5 · 200 monedas + un pequeño bono en el primer intento de hoy
Reassemble the data: list each booking's student next to their club's coach, by joining booking hasta club on club_id, ordered by booking.booking_id.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 3/5 · 200 monedas + un pequeño bono en el primer intento de hoy
The split tables still answer questions together. Count how many bookings each club has: join booking hasta club, show club.name y COUNT(*) AS bookings, group by the club, and order by club.name.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 3/5 · 200 monedas + un pequeño bono en el primer intento de hoy
The coach is stored once, in club. List the student names in Mr Ng's club: join booking hasta club, keep the rows where club.coach = 'Mr Ng', and order by student.
Haz clic en Ejecutar para ver la salida aquí.