I'm trying to practice on database design and querying. Given the UseCase: I select a start date and end date, then it will pull down available cars within the set date range. This is my schema:
This is my pseudo code:
SELECT vehicle_id FROM reservation WHERE pickup_date AND end_date IS NOT between given start date and end date