G
Guest
In a database designed to book rooms i have a query to find out which rooms
are free on specific dates however it doesn't work. Because a room can be
booked for more than one day when the booking is made it has a 'start of
booking date' and 'end of booking date'.
However when i run a query to find out about free rooms if i type a date
that is between the 'start of booking date' and 'end of booking date' of a
booking then it shows that the room is free even though it isn't.
How do i make it so that it will bring up bookings that span the date that
the user has searched for?
are free on specific dates however it doesn't work. Because a room can be
booked for more than one day when the booking is made it has a 'start of
booking date' and 'end of booking date'.
However when i run a query to find out about free rooms if i type a date
that is between the 'start of booking date' and 'end of booking date' of a
booking then it shows that the room is free even though it isn't.
How do i make it so that it will bring up bookings that span the date that
the user has searched for?