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 language does mysql use?
What is strict mode in mysql?
What is dbms in mysql?
How to calculate the difference between two time values?
How do you know if your mysql server is alive?
can you elaborate on blob and text in mysql? : Mysql dba
How to calculate expressions with sql statements?
In mysql, what is joins? Explain
Is Mysql query is case sensitive?
What is blob datatype in mysql?
What is 'mysqlshow'?
What, if a table has one column defined as TIMESTAMP?
What is the limitation of mysql?
How to enter boolean values in sql statements?
What is the difference between is null & is not null?