For example i have 2 tables that have relationship with one another. room_directory.id and booked_room.room_id
room_directory
id
room_number
booked_room
id
booking_id
room_id
How to write query that select only the rooms from room_directory that are not exists in booked_room table?