i want to get data for the employee with it's department and the attendance
i have three tables in my mysql database (employees,departments,attendances) and there's one to many from department to employee and one to many from employee to attendance so i'm try make search filter with department name and date in order to get the presents employees in specific day and the dismissal employees in the sameday
however i don't know what i can do to get the attendance with department to make the search