these are examples my tables:
Employees
id | Name
1 | employee 1
2 | employee 2
3 | employee 3
Busy_Schedule
id | start_date | finish_date | employee_id
1 | 20-11-2017 | 22-11-2017 | 1
2 | 24-11-2017 | 28-11-2017 | 1
3 | 20-11-2017 | 22-11-2017 | 2
4 | 20-11-2017 | 22-11-2017 | 3
I want to choose available employees based on joining these two tables.
For example, I want to know who is available from 21-11-2017 to 23-11-2017. If I use join, I am getting employee 1 as available because of the multiple entries, whereas he is not available between these two dates.
I am working with Mysql