Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am a beginner..........
i am doing a asp.net project digital car parking system.the user need to park the car in slots.for booking the slot,enter the Vehicle entry date and exit date.if one user book the slot in between two dates.next another user book the same slot at the same date.i need to prevent the booking at the same dates.please send me the code for checkig the date is between Vehicle Entry date and Vehicle Exit date.
Posted
Comments
Vani Kulkarni 16-Jan-13 0:40am    
What have you tried till now? Would you post your code?

 
Share this answer
 
May be it helps you..

SQL
SELECT  slot_no , entry_date, exit_date
FROM    TBMORDER
WHERE   (entry_date < '10/12/2012') AND (exit_date > '10/12/2012') AND (slot_no = 9;)


Using above query you can check for slot no 9 is booked for not and its entry date and exit date also for your given date

Thanks
Asp.Net/C#.Net Help[^]
Hemant Singh
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900