I am developing a booking system (PHP-MySQL) for my hotel rooms.
I got 2 tables
rooms_table
----------+---------------+----------------+
room_id | room_name | room_type |
----------+---------------+----------------+
125 | name 2 | deluxe |
----------+---------------+----------------+
126 | name 3 | deluxe |
----------+---------------+----------------+
rooms_avl_table ( in which I am saving non-available days for rooms)
----------+---------------+----------------+
avl_id | room_id | navl_date |
----------+---------------+----------------+
12 | 125 | 2018-10-02 |
----------+---------------+----------------+
13 | 125 | 2018-09-05 |
----------+---------------+----------------+
I wanna list all rooms which are not listed in the rooms_avl_table
table. ie if searching with a date "2018-09-05", needs to show all the rooms with out 126 (room_id) - which is not available.