Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reservation view problem
Message
De
18/06/1999 11:22:08
 
 
À
18/06/1999 10:14:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00231366
Message ID:
00231442
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform