ICTkirsten
Registered User.
- Local time
- Today, 22:15
- Joined
- Jan 3, 2015
- Messages
- 137
Hello,
Im trying to follow this guide but i dont understand how to do some stuff which i will underline... also how do i subtract one from the other?
Although the idea of the query - to find available slots on a given day - sounds quite simple, it's not as easy as it first appears. This is because you're looking not just for bookings that don't exist, but bookings that don't exist on a particular day. My solution, therefore, uses two queries - one that finds the appointments that have been made for a particular doctor on a given day (straightforward enough), and then a second one that effectively subtracts these from the complete list of available slots (i.e. those in tbl_available), to give the available appointments for the chosen day
thank you
Im trying to follow this guide but i dont understand how to do some stuff which i will underline... also how do i subtract one from the other?
Although the idea of the query - to find available slots on a given day - sounds quite simple, it's not as easy as it first appears. This is because you're looking not just for bookings that don't exist, but bookings that don't exist on a particular day. My solution, therefore, uses two queries - one that finds the appointments that have been made for a particular doctor on a given day (straightforward enough), and then a second one that effectively subtracts these from the complete list of available slots (i.e. those in tbl_available), to give the available appointments for the chosen day
thank you