I have 2 tables. One is called booking and another one is called room. The columns in booking are: RoomID, startdate, enddate, customerId. The columns in room is: RoomID, size.<
Try this code
SELECT booking.* FROM booking JOIN room USING(RoomID) WHERE column_name BETWEEN startdate AND enddate AND size = @size_input;