Hello,
I am supposed to make a database for a hotel system, I was wondering how I could prevent double bookings. I have searched plenty of forums but I haven't really got the idea.
My Reservation Table has the following fields:
Reservation No. (PK)
Room No. (FK)
Customer ID (FK)
Payment ID(FK)
Reservation In Date
Reservation Out Date
Together with preventing double bookings can someone also tell me if there is a way automatically that can mark in the Room Table, the status as "available" or "booked" automatically by looking at the date today?
Thanks In Advance![]()