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 |
Can anyone help me to create a good mysql database schema with an example. Thanks, Sekar.jr
How to decrement dates by 1 in mysql?
How do I select a database in mysql?
How do you know if your mysql server is alive?
What is mvcc in mysql?
What is longblob in mysql?
How you will show all data from a table.
How can you create and drop view in mysql?
what are the optimization techniques for Query optimization performance issues and faster execution of queries
2 Answers Infosys, Sierra Atlantica,
How to give user privilages for a db. Login as root. Switch to the mysql db. Grant privs. Update privs.
Which storage engine is best in mysql?
What are the different types of triggers in mysql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)