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
How many ways to get the current time?
How to enter microseconds in sql statements?
What is the difference between heap table and temporary table?
How do I find my mysql username and password?
Why should I use mysql?
How to create a table index in mysql?
How do I change mysql password?
What is difference between mysql mysqli and pdo?
What is a csv table?
What is database url for mysql?
What is the full form of mysql?
Is mysql same as mariadb?
What is pdo connection?
How is data stored in mysql?
What is 'mysqladmin' in mysql?