So basically there are four services offered by a resort:
services (Table with all resort services)
ser_id ser_name
1 Breakfast
2 Dinner
3 Towels
4 Taxi
Members can select which services they would like when they book with the resort. There are three options with the corresponding member cases they apply to in the chosen_services table:
- Choose individual services [member 6 case]
- Choose all services at once [member 7 case]
- Choose all services at once, then unchoose individual services [member 5 case]
To make things clearer, here is what the chosen_services table looks like:
chosen_services (Table with all member chosen resort services)
resort_id mem_id ser_id chosen_type
2 5 0 all
2 5 1 cancelled
2 5 2 cancelled
2 6 4 chosen
2 7 0 all
If there is a change in price for any of the services, we need to pull out the members who chose that service and email them with the change.
I've been stuck on this one for hours, how can we get this thing to work?