This is because you're not joining the tables room_booking
and building
, producing a cartesian product on it.
SELECT
b.building_code,
b.building_name,
r.booking_date
FROM building b
JOIN room_booking r /* missing join condition here: ON r.building_code = b.building_code */
WHERE
TO_DATE(r.booking_date) = TRUNC(SYSDATE)