Hi,
I'm working on a check in / check out system that deals with a pool of computers. Basically we have a table containing the computers and a table containing reservations that links to the computers ID from another table.
My problem is I want to be able to allow my user to select a start date and an end date and have a query that can sort through the reservations to determine which units are not reserved inbetween those two dates.
I know I could easily do it in php by running a loop that runs a query for each day, but I was wondering if there is a better way to do it in a SQL query.