I'm a beginner with databases and I'm trying to design a database in Microsoft Access that will allow users to make bookings for fitness classes. There are two slots per day that these classes can be booked for and each session can cater for 10 people.
What I am struggling to understand is how I can limit the number of bookings made per session, per day, to ensure nobody can book a class on a session and a day that is already full up. Can anyone offer me any suggestions about how I can achieve this? I have started designing the tables but I know they aren't correct it all feels a bit of a mess.
The tables I have so far:
Customers
Customer ID (PK)
Surname
Forename
Address
Telephone No
Bookings
Booking ID (PK)
Date_taken
Customer ID (FK)
Class
Class ID (PK)
Description
Price
Session
Session ID (PK)
Session
Number per session
Booking_Class_Lines
Booking_ID(PK)
Session_ID (PK)
Class_ID (PK)
Date_of_booking
Thanks in advance