Hi friends just i don't know the query to check given date doesn't exists given date field in mysql .can any one help me to find out i have two table 1.Marriage Hall and Booking hall id is the primary key in hall table and foreign key in booking table .how to join two table . my question is 1.Retrieve the available marriage halls for the date 01-15-2013
booking_From booking_to
2012-10-12 2012-10-15
2012-10-17 2012-10-19
to check the given date '2012-10-12' doesn't exists above the date