Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reservation view problem
Message
From
18/06/1999 14:07:48
 
 
To
18/06/1999 11:22:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00231366
Message ID:
00231522
Views:
14
>>Hi !
>>I have a logical problem... I work on a room reservation application : I have one database with all the ROOMS and one with reservations with a start date and an end date...
>>I would like to do a view to visualize all the ROOMS that are not reserved between two dates (variables)...
>>
>>I'm sure it's simple but I can't find the solution... Help !!!
>>
>>Thanks !
>>
>>Gilles
>
>ldStayStart = DATE()
>ldStayEnd = DATE + 5
>
>SELE Rooms.* FROM Rooms WHERE Room.id NOT IN ;
> (SELECT Reservation.roomId FROM Reservation ;
> WHERE !BETWEEN(ldStayStart, reservation.dStart, Reservation.dEnd) ;
> AND !BETWEEN(ldStayEnd, reservation.dStart, Reservation.dEnd)) ;
> INTO CURSOR AvailableRooms

Thanks I'll try !!!

Gilles
Gilles Azria
-------------------------------------------------
http://www.profiledatabase.com
http://www.photoprofile.ch
Previous
Reply
Map
View

Click here to load this message in the networking platform