Bright Stars organise and run classes for children. Classes are organised into blocks, each running for 8 weeks.
The table Class stores data about the classes available.
The table Booking stores data about the children and their parents/guardians.
Sample data from each table is shown below.
Class |
classID | leaderName | day | time | location | sessionBlock | classAge |
S1-141 | Suzanne | Mon | 10:45 | Grange | Summer | 1-2 Years |
S2-228 | Claire | Tue | 11:50 | Lothianburn | Autumn | 3-4 Years |
S2-871 | Jo | Mon | 13:00 | Gorebridge | Spring | 3-4 Years |
B1-121 | David | Thur | 15:30 | Biggar | Winter | Babies |
S1-333 | Alexander | Wed | 13:00 | Coldingham | Summer | 1-2 Years |
S2-519 | Claire | Fri | 10:45 | Lothianburn | Autumn | 3-4 Years |
B3-435 | Jose | Wed | 09:30 | Gorebridge | Spring | Babies |
… | … | … | … | … | … | … |
Booking |
bookingID | parentName | email | childName | childDOB | paid | classID |
EF220731 | Esme Faulds | [email protected] (opens in a new tab) | Quinn | 25/09/2022 | No | S1-333 |
TR238270 | Tim Roberts | [email protected] (opens in a new tab) | Lucas | 05/02/2023 | Yes | B1-121 |
ZA200836 | Zoe Archer | [email protected] (opens in a new tab) | Blake | 11/01/2020 | Yes | S2-288 |
FY229853 | Fen Yang | [email protected] (opens in a new tab) | Freya | 06/06/2022 | No | S1-333 |
… | … | … | … | … | … | … |
A new class is going to be added for Autumn which will be run by Adam. This is added by executing the following SQL statement.
INSERT INTO Class (classID, leaderName, day, time,
location, sessionBlock, classAge)
VALUES ("B1-497", "Adam", "Mon", 15:30, "Grange","Autumn",
"Babies");
Tim Roberts, who made booking TR238270, would like to book their child Lucas onto this new class. He has not yet paid for the class.
Write an SQL statement that will add this booking to the Booking table, using the bookingID TR653726.