I have two table room_detail and conference_room_booking
room_detail       conference_room_booking
-------------     ------------------------
room_id PK        room_booking_id PK
room_name         room_id
no_of_seat        user_id
                  date
                  from_time
                  to_time
                  room_status
                  creation_time
User already booked room and  wants to update conference_room_booking
table by checking availability of time slot(eg-2-4,5-7,9-10) on that day or
other day, and can change room_name also.
Condition: user should not book the past date or time
How to do that in sql query? What portion can be done in sql query? Please help.
 
     
     
    