I have query with the following field (ID, EmployeeNo, Date, daytype)
Daytype field have one following Value (P,AL,A,SL,H,AWR)
I would like to calculate the following from Type field:
Working Days (P+H)
Absent Days (SL+EL+AL,A)
Payable Days ((P+H+SL)-(EL+AL+A+AWR)
While Absent Without Reason (AWR) will be calculated with 2