I have two tables, Timesheet and Overtime
Timesheet :
Card_No Name 1 2 3 4 5 TotalA
123 GGG A H P F P 1
123 GGG A H A F P 2
123 GGG A P P F P 1
123 GGG A A A F P 3
Overtime:
Card_No Name 1 2 3 4 5
123 GGG 2 2 2 12 2
123 GGG 0 2 0 12 2
123 GGG 0 3 2 12 2
123 GGG 0 0 0 12 2
Now I want to total over time in two columns Normal Overtime and Holiday overtime
if in
Timesheetcolumn 4 isF(Friday) and column 2 isH(Holiday) then overtime of column 4 and column 2 should be added to holiday overtimeif column 1 is
A(absence) then overtime table column1 does not allow to put in any overtime.
Result should be like this
Card_No Name 1 2 3 4 5 Normal OT Holiday OT
123 GGG it’s A 2 2 12 2 4 14
123 GGG 0 2 0 12 2 2 14
123 GGG 0 3 2 12 2 4 14
123 GGG 0 0 0 12 2 2 14
How can I do this? Please help me .
Thank you
