kajobkajob2
Registered User.
- Local time
- Today, 22:20
- Joined
- Jun 8, 2013
- Messages
- 14
hello it's kajob,
i'm new to the this forum
I'll get straight to the point,
I'm trying to make a room availability SGL query by selecting the records in my "Bookings Details" table that do not have a certain booking date.
The Details:
Booking Details; Booking ID, CheckIn, checkOut, RoomID
Rooms; RoomID
here is my code/sql stuff
SELECT Rooms.RoomID
FROM Rooms
WHERE NOT EXISTS (
SELECT Booking Details.RoomID, Booking Details.CheckIn, Booking Details.CheckOut
FROM Booking Details
WHERE ((([Enter CheckIn Date]<=[CheckOut])) AND (([Enter Checkout Date]>=[CheckIn])) AND Rooms.RoomID = Bookings.RoomID)
);
I would prefer replies to be quick, thanks for your time!
EDIT: if you've seen this thread but don't know the answer can still post DON'T KNOW so that I know your not just ignoring this page
i'm new to the this forum
I'll get straight to the point,
I'm trying to make a room availability SGL query by selecting the records in my "Bookings Details" table that do not have a certain booking date.
The Details:
Booking Details; Booking ID, CheckIn, checkOut, RoomID
Rooms; RoomID
here is my code/sql stuff
SELECT Rooms.RoomID
FROM Rooms
WHERE NOT EXISTS (
SELECT Booking Details.RoomID, Booking Details.CheckIn, Booking Details.CheckOut
FROM Booking Details
WHERE ((([Enter CheckIn Date]<=[CheckOut])) AND (([Enter Checkout Date]>=[CheckIn])) AND Rooms.RoomID = Bookings.RoomID)
);
I would prefer replies to be quick, thanks for your time!
EDIT: if you've seen this thread but don't know the answer can still post DON'T KNOW so that I know your not just ignoring this page
Last edited: