I have 2 fdb company.fdb and timeAtt.fdb
company.fdb contains the staffDetail table
staffId - 001 staffName - Andy staffStatus - Active
timeAtt.fdb contains a staffAtt table
staffId - 001 staffName - Andy timeIn - 07:30 timeOut - 04:30 LI - X (late in) AB - X (absent ) remarks - Emergency leave
Now, I would like to look at the staff who was absent just that I did it this way
SELECT staffId,staffName,remarks FROM timeAtt.fdb WHERE AB = 'X'
But the problem is that the request also displays inactive personnel. Therefore, I need to join staffAtt from timeAtt.fdb and staffDetail from company.fdb to display only employees with active status. How can i do this?
source share