In a property booking section want a query to check that
property is booked from StartDate to EndDate.Booking Table
field are given
id
proerty_id
start_date
checkout_date
no_of_visitor
booking date
status
Waiting yours answer..
Thanks In Advance...
Answer Posted / sudhanshu_kmr
select * from property_table where
to_days(bookingdate)> to_days(startdate) and to_days(bookingdate)< to_days(enddate) ;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of mysql in comparison to oracle?
What is the use of count function in mysql?
What is unsigned int in mysql?
Can varchar be primary key?
What is mysql good for?
What is mysql primary key?
How do I make an action query?
Can I use mariadb instead of mysql?
What is longblob?
What are the differences between a primary key and foreign key?
How do I find mysql version in mysql workbench?
Is mysql still relevant?
Can foreign key have duplicate values?
Where does mysql store data?
How to show all records starting with the letters 'sonia' and the phone number '9876543210'