Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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...



In a property booking section want a query to check that property is booked from StartDate to EndDa..

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

Post New Answer

More MySQL Interview Questions

Can anyone help me to create a good mysql database schema with an example. Thanks, Sekar.jr

1 Answers  


How to decrement dates by 1 in mysql?

0 Answers  


How do I select a database in mysql?

0 Answers  


How do you know if your mysql server is alive?

0 Answers  


What is mvcc in mysql?

0 Answers  


What is longblob in mysql?

0 Answers  


How you will show all data from a table.

0 Answers  


How can you create and drop view in mysql?

0 Answers  


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.

0 Answers  


Which storage engine is best in mysql?

0 Answers  


What are the different types of triggers in mysql?

0 Answers  


Categories