Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.21 KB | None | 0 0
  1. SELECT CarId, Make, Model, ReturnLocation
  2. FROM Agreement, Vehicle
  3. WHERE '2018-01-04' BETWEEN HireStartDate AND HireEndDate
  4. OR '2018-04-09' BETWEEN HireStartDate AND HireEndDate
  5. AND Agreement.CarId = Vehicle.Id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement