Question
Searching on a date range
I have two tables I need to search both based on a startdate
and enddate.
I was thinking something like
select *
from customers, booking
where arrivalDate BETWEEN CreateODBCDate(form.arrivalDate) AND departDate BETWEEN CreateODBCDate(form.departDate)
AND customer.booking_id = booking.booking_id
I haven't been able to get this to work any ideas in the right direction would be greatly appreciated
I was thinking something like
select *
from customers, booking
where arrivalDate BETWEEN CreateODBCDate(form.arrivalDate) AND departDate BETWEEN CreateODBCDate(form.departDate)
AND customer.booking_id = booking.booking_id
I haven't been able to get this to work any ideas in the right direction would be greatly appreciated
