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 / 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 |
How does mysql store binary data?
Transactions are used to treat sets of SQL statements atomically. State Whether True or False?
What is max connections in mysql?
How many mysql connections can handle?
How to delete an existing column in a table?
what is the difference between MyISAM and INNO DB in MySQL with the Advantage and disadvantage
How do you index just the first four bytes of the column?
Why do we use group by and order by function in mysql?
How do I edit a trigger in mysql?
What is delimiter in mysql trigger?
Is mysql port 3306 tcp or udp?
How to write after insert event update trigger on the same table in mysql?