I cannot figure out how to write query for checking date.
For example;
Rooms table;
room_id, number_of_rooms, checkin(date: 1/05/2012), checkout(date:14/05/2012);
I want to write a query which check for entered date by user (checkin and checkout date) with rooms tabel(checkin and checkout date);
The idea is to know whether period of time entered by user is between check in and check out date of rooms table
Something like this;
select * from romms
where checkin and checkout date is not among user_entered_checkin and user_entered_checkeout
Maybe