Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I am developing a room reservation application, so when the customer does reserve a room suppose the checkin date is 22/05/2016 and checkout date is 31/05/2016, the system should be able to auto-update the room and make it available from 30/05/2016 at midnignt(12:00AM) to the next reservation.

What I have tried:

I dont't have any idea of how to do it. I've been searching on google, what I saw is to create something called job. If possible provide sql query as well.
Posted
Comments
CHill60 31-May-16 4:48am    
Yes - you need to schedule a job. See Schedule a Job[^]
Implement Jobs[^]
We can't provide the sql query as you have not provided us with sufficient information
John C Rayan 31-May-16 5:51am    
As CHill60 mentioned you can use scheduled job.

The easiest thing to do is check the from and to dates for a room.You can decide whether a room is available on a given date by checking the from and to dates.

So I don't see a problem in what you are trying to do.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900