How do I get a result across 2 tables

Use a basic INNER JOIN to achieve that.

SELECT b.*
FROM booking b INNER JOIN room r USING(RoomID)
WHERE @date_input BETWEEN startdate AND enddate AND size = @size_input;

Change @date_input and @size_input to your real input.

Leave a Comment