Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reservation view problem
Message
From
18/06/1999 11:22:08
 
 
To
18/06/1999 10:14:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00231366
Message ID:
00231442
Views:
12
>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
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform