I am trying to join two tables User and Busy Days. I want to fetch all the users who do not have a busy date--the available users.
User
| user_id | username |
|---|---|
| 1 | John |
| 2 | Doe |
Busy Days
| id | busy_date | user_id |
|---|---|---|
| 1 | 2022-05-26 | 1 |
| 2 | 2022-05-26 | 2 |
| 3 | 2022-05-29 | 1 |
| 4 | 2022-06-01 | 2 |
I want to search by date. If 2022-05-26 the result should be zero because both users have a busy day on that date, but if 2022-05-27 both users should appear.