select * from schedule_shift inner join employee on schedule_shift.Agent_ID = employee.EMP_ID where schedule_shift.Time_start between '08:00' and '12:00'
select * from schedule_shift inner join employee on schedule_shift.Agent_ID = employee.EMP_ID where schedule_shift.Time_start between '08:00' and '12:00'
ถ้าโค้ดนี้ถูกแล้วก็แค่เพิ่มคำสั่ง
select * from schedule_shift inner join employee on schedule_shift.Agent_ID = employee.EMP_ID where schedule_shift.Time_start between '08:00' and '12:00' and not (schedule_shift.Time_start between '09:00' and '09:59')