UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '02 May 2023' AND DB_OSP_ABSENCE.End_Date = '04 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '23 May 2019' AND DB_OSP_ABSENCE.End_Date = '23 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '08 May 2017' AND DB_OSP_ABSENCE.End_Date = '08 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '31 May 2016' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '23 May 2016' AND DB_OSP_ABSENCE.End_Date = '24 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '20 May 2013' AND DB_OSP_ABSENCE.End_Date = '22 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1684' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2059' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2059' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2059' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2059' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2059' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '10 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '21 May 2008' AND DB_OSP_ABSENCE.End_Date = '22 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '17 May 2006' AND DB_OSP_ABSENCE.End_Date = '17 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1226' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1507' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '12 May 2022' AND DB_OSP_ABSENCE.End_Date = '12 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '12 May 2021' AND DB_OSP_ABSENCE.End_Date = '12 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1987' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '08 May 2021' AND DB_OSP_ABSENCE.End_Date = '14 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '07 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2224' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '16 May 2017' AND DB_OSP_ABSENCE.End_Date = '18 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '08 May 2014' AND DB_OSP_ABSENCE.End_Date = '08 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '17 May 2010' AND DB_OSP_ABSENCE.End_Date = '18 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '14 May 2007' AND DB_OSP_ABSENCE.End_Date = '14 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1375' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2096  ' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2096  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2096  ' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2096  ' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2178  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '09 May 2011' AND DB_OSP_ABSENCE.End_Date = '09 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1528' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '31 May 2019' AND DB_OSP_ABSENCE.End_Date = '31 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '09 May 2019' AND DB_OSP_ABSENCE.End_Date = '21 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '08 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '17 May 2018' AND DB_OSP_ABSENCE.End_Date = '17 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '22 May 2015' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '14 May 2009' AND DB_OSP_ABSENCE.End_Date = '14 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0627' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2067  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '09 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '11 May 2010' AND DB_OSP_ABSENCE.End_Date = '11 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0976' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '31 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '05 May 2015' AND DB_OSP_ABSENCE.End_Date = '05 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '17 May 2012' AND DB_OSP_ABSENCE.End_Date = '17 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0177' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1591' AND DB_OSP_ABSENCE.Start_Date = '09 May 2011' AND DB_OSP_ABSENCE.End_Date = '13 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '01 May 2024' AND DB_OSP_ABSENCE.End_Date = '07 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '01 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '20 May 2014' AND DB_OSP_ABSENCE.End_Date = '23 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '23 May 2013' AND DB_OSP_ABSENCE.End_Date = '23 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1470' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2560  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01334' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '07 May 2024' AND DB_OSP_ABSENCE.End_Date = '07 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2311  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1716' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '08 May 2017' AND DB_OSP_ABSENCE.End_Date = '10 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '12 May 2014' AND DB_OSP_ABSENCE.End_Date = '13 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1686' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1903' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1903' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1903' AND DB_OSP_ABSENCE.Start_Date = '28 May 2019' AND DB_OSP_ABSENCE.End_Date = '28 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1903' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1903' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1903' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '21 May 2018' AND DB_OSP_ABSENCE.End_Date = '21 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '16 May 2016' AND DB_OSP_ABSENCE.End_Date = '16 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1393' AND DB_OSP_ABSENCE.Start_Date = '15 May 2007' AND DB_OSP_ABSENCE.End_Date = '17 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2421  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0222' AND DB_OSP_ABSENCE.Start_Date = '21 May 2013' AND DB_OSP_ABSENCE.End_Date = '31 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0222' AND DB_OSP_ABSENCE.Start_Date = '14 May 2013' AND DB_OSP_ABSENCE.End_Date = '17 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '20 May 2021' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '08 May 2021' AND DB_OSP_ABSENCE.End_Date = '19 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '07 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '27 May 2017' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '15 May 2017' AND DB_OSP_ABSENCE.End_Date = '26 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '12 May 2017' AND DB_OSP_ABSENCE.End_Date = '12 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '21 May 2012' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1650' AND DB_OSP_ABSENCE.Start_Date = '18 May 2012' AND DB_OSP_ABSENCE.End_Date = '18 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '26 May 2022' AND DB_OSP_ABSENCE.End_Date = '26 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '06 May 2021' AND DB_OSP_ABSENCE.End_Date = '06 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '20 May 2019' AND DB_OSP_ABSENCE.End_Date = '20 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '16 May 2017' AND DB_OSP_ABSENCE.End_Date = '17 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1742' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '13 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '13 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '09 May 2022' AND DB_OSP_ABSENCE.End_Date = '10 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '22 May 2025' AND DB_OSP_ABSENCE.End_Date = '23 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2277  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2388  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '29 May 2014' AND DB_OSP_ABSENCE.End_Date = '30 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1639' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2508  ' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2508  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1829' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1829' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2477  ' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2477  ' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2477  ' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2477  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2477  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '23 May 2022' AND DB_OSP_ABSENCE.End_Date = '27 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '14 May 2022' AND DB_OSP_ABSENCE.End_Date = '20 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '09 May 2022' AND DB_OSP_ABSENCE.End_Date = '13 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '22 May 2019' AND DB_OSP_ABSENCE.End_Date = '29 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '20 May 2019' AND DB_OSP_ABSENCE.End_Date = '21 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '17 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1957' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2435  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2435  ' AND DB_OSP_ABSENCE.Start_Date = '16 May 2023' AND DB_OSP_ABSENCE.End_Date = '16 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '23 May 2024' AND DB_OSP_ABSENCE.End_Date = '23 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2201  ' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '02 May 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '16 May 2019' AND DB_OSP_ABSENCE.End_Date = '17 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '08 May 2017' AND DB_OSP_ABSENCE.End_Date = '08 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '16 May 2016' AND DB_OSP_ABSENCE.End_Date = '18 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '07 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '28 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '31 May 2012' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1504' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '12 May 2014' AND DB_OSP_ABSENCE.End_Date = '13 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '28 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1651' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '01 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '09 May 2025' AND DB_OSP_ABSENCE.End_Date = '09 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2088  ' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1851' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1851' AND DB_OSP_ABSENCE.Start_Date = '06 May 2016' AND DB_OSP_ABSENCE.End_Date = '09 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1738' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '19 May 2022' AND DB_OSP_ABSENCE.End_Date = '19 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '29 May 2019' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1925' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '27 May 2021' AND DB_OSP_ABSENCE.End_Date = '28 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2189  ' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '09 May 2018' AND DB_OSP_ABSENCE.End_Date = '09 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '15 May 2014' AND DB_OSP_ABSENCE.End_Date = '15 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '24 May 2007' AND DB_OSP_ABSENCE.End_Date = '24 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1253' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '11 May 2015' AND DB_OSP_ABSENCE.End_Date = '15 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1793' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2534  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1565' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1565' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1565' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1565' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1565' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '31 May 2016' AND DB_OSP_ABSENCE.End_Date = '31 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1399' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '10 May 2021' AND DB_OSP_ABSENCE.End_Date = '11 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '16 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0210' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2585  ' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2375  ' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '26 May 2015' AND DB_OSP_ABSENCE.End_Date = '29 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1721' AND DB_OSP_ABSENCE.Start_Date = '12 May 2014' AND DB_OSP_ABSENCE.End_Date = '14 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2090  ' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '28 May 2024' AND DB_OSP_ABSENCE.End_Date = '28 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '17 May 2024' AND DB_OSP_ABSENCE.End_Date = '17 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '13 May 2022' AND DB_OSP_ABSENCE.End_Date = '26 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '25 May 2016' AND DB_OSP_ABSENCE.End_Date = '26 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '23 May 2016' AND DB_OSP_ABSENCE.End_Date = '23 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1819' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1476' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '21 May 2021' AND DB_OSP_ABSENCE.End_Date = '21 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2044' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1990' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1990' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1800' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2597  ' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2025' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2597  ' AND DB_OSP_ABSENCE.Start_Date = '08 May 2025' AND DB_OSP_ABSENCE.End_Date = '08 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2515  ' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2515  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2515  ' AND DB_OSP_ABSENCE.Start_Date = '09 May 2024' AND DB_OSP_ABSENCE.End_Date = '10 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2515  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '29 May 2015' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '14 May 2014' AND DB_OSP_ABSENCE.End_Date = '20 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '23 May 2013' AND DB_OSP_ABSENCE.End_Date = '24 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1551' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1881' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1881' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1881' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1881' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1881' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '29 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '14 May 2012' AND DB_OSP_ABSENCE.End_Date = '14 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '24 May 2010' AND DB_OSP_ABSENCE.End_Date = '24 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1546' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1433' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1989' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '03 May 2022' AND DB_OSP_ABSENCE.End_Date = '03 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '23 May 2016' AND DB_OSP_ABSENCE.End_Date = '23 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1615' AND DB_OSP_ABSENCE.Start_Date = '10 May 2012' AND DB_OSP_ABSENCE.End_Date = '10 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '08 May 2019' AND DB_OSP_ABSENCE.End_Date = '08 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1772' AND DB_OSP_ABSENCE.Start_Date = '20 May 2016' AND DB_OSP_ABSENCE.End_Date = '20 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '18 May 2017' AND DB_OSP_ABSENCE.End_Date = '19 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '29 May 2013' AND DB_OSP_ABSENCE.End_Date = '31 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '05 May 2009' AND DB_OSP_ABSENCE.End_Date = '08 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '05 May 2009' AND DB_OSP_ABSENCE.End_Date = '08 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '19 May 2006' AND DB_OSP_ABSENCE.End_Date = '19 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1363' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2526  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2526  ' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2555  ' AND DB_OSP_ABSENCE.Start_Date = '06 May 2025' AND DB_OSP_ABSENCE.End_Date = '07 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2555  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '23 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '07 May 2024' AND DB_OSP_ABSENCE.End_Date = '07 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '24 May 2017' AND DB_OSP_ABSENCE.End_Date = '25 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '22 May 2014' AND DB_OSP_ABSENCE.End_Date = '23 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '03 May 2007' AND DB_OSP_ABSENCE.End_Date = '04 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0871' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '28 May 2024' AND DB_OSP_ABSENCE.End_Date = '29 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2428  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2098  ' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2098  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '09 May 2022' AND DB_OSP_ABSENCE.End_Date = '13 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2102  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '08 May 2025' AND DB_OSP_ABSENCE.End_Date = '08 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2276  ' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '15 May 2025' AND DB_OSP_ABSENCE.End_Date = '16 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2384  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '09 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '01 May 2019' AND DB_OSP_ABSENCE.End_Date = '01 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1922' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2292  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2292  ' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2292  ' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2292  ' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2172  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2172  ' AND DB_OSP_ABSENCE.Start_Date = '10 May 2021' AND DB_OSP_ABSENCE.End_Date = '10 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2172  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2545  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '14 May 2012' AND DB_OSP_ABSENCE.End_Date = '15 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '20 May 2009' AND DB_OSP_ABSENCE.End_Date = '22 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '19 May 2009' AND DB_OSP_ABSENCE.End_Date = '19 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '13 May 2009' AND DB_OSP_ABSENCE.End_Date = '15 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '11 May 2009' AND DB_OSP_ABSENCE.End_Date = '11 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '31 May 2007' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2174' AND DB_OSP_ABSENCE.Start_Date = '30 May 2007' AND DB_OSP_ABSENCE.End_Date = '30 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '26 May 2023' AND DB_OSP_ABSENCE.End_Date = '26 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '23 May 2023' AND DB_OSP_ABSENCE.End_Date = '23 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '19 May 2023' AND DB_OSP_ABSENCE.End_Date = '19 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2177  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '15 May 2017' AND DB_OSP_ABSENCE.End_Date = '19 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '23 May 2016' AND DB_OSP_ABSENCE.End_Date = '24 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '14 May 2012' AND DB_OSP_ABSENCE.End_Date = '16 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '04 May 2011' AND DB_OSP_ABSENCE.End_Date = '04 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '01 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '21 May 2008' AND DB_OSP_ABSENCE.End_Date = '22 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '20 May 2008' AND DB_OSP_ABSENCE.End_Date = '20 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0582' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2432' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '02 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '19 May 2020' AND DB_OSP_ABSENCE.End_Date = '19 May 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '31 May 2019' AND DB_OSP_ABSENCE.End_Date = '31 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '02 May 2019' AND DB_OSP_ABSENCE.End_Date = '02 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2104  ' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1764' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1213' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1803' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1803' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1803' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1803' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1803' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '02 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '11 May 2018' AND DB_OSP_ABSENCE.End_Date = '18 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '05 May 2017' AND DB_OSP_ABSENCE.End_Date = '05 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1700' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2043' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '02 May 2023' AND DB_OSP_ABSENCE.End_Date = '12 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '14 May 2018' AND DB_OSP_ABSENCE.End_Date = '14 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '31 May 2016' AND DB_OSP_ABSENCE.End_Date = '31 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '08 May 2015' AND DB_OSP_ABSENCE.End_Date = '08 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1796' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '20 May 2019' AND DB_OSP_ABSENCE.End_Date = '23 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '10 May 2016' AND DB_OSP_ABSENCE.End_Date = '11 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '01 May 2014' AND DB_OSP_ABSENCE.End_Date = '01 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '08 May 2009' AND DB_OSP_ABSENCE.End_Date = '08 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '02 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1155' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2266  ' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '16 May 2022' AND DB_OSP_ABSENCE.End_Date = '16 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '29 May 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '24 May 2021' AND DB_OSP_ABSENCE.End_Date = '28 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '17 May 2021' AND DB_OSP_ABSENCE.End_Date = '21 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '10 May 2021' AND DB_OSP_ABSENCE.End_Date = '14 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '01 May 2021' AND DB_OSP_ABSENCE.End_Date = '07 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '27 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1788' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '18 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2554  ' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2554  ' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '29 May 2018' AND DB_OSP_ABSENCE.End_Date = '30 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '15 May 2017' AND DB_OSP_ABSENCE.End_Date = '17 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '18 May 2016' AND DB_OSP_ABSENCE.End_Date = '20 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '09 May 2016' AND DB_OSP_ABSENCE.End_Date = '17 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1741' AND DB_OSP_ABSENCE.Start_Date = '08 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '09 May 2025' AND DB_OSP_ABSENCE.End_Date = '09 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1816' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1664' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '22 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1664' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1664' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1664' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1664' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '19 May 2010' AND DB_OSP_ABSENCE.End_Date = '19 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W201484' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '08 May 2019' AND DB_OSP_ABSENCE.End_Date = '08 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1930' AND DB_OSP_ABSENCE.Start_Date = '01 May 2018' AND DB_OSP_ABSENCE.End_Date = '02 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '23 May 2019' AND DB_OSP_ABSENCE.End_Date = '23 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1810' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '08 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0797' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2331  ' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2331  ' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2331  ' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2331  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '16 May 2022' AND DB_OSP_ABSENCE.End_Date = '20 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '07 May 2021' AND DB_OSP_ABSENCE.End_Date = '07 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2062  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0297' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2253  ' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2253  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2022' AND DB_OSP_ABSENCE.End_Date = '03 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2253  ' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2253  ' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2253  ' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '09 May 2013' AND DB_OSP_ABSENCE.End_Date = '16 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '07 May 2013' AND DB_OSP_ABSENCE.End_Date = '08 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0051' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2510  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2510  ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2510  ' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '24 May 2011' AND DB_OSP_ABSENCE.End_Date = '25 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '21 May 2009' AND DB_OSP_ABSENCE.End_Date = '21 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '13 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0138' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '28 May 2024' AND DB_OSP_ABSENCE.End_Date = '28 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '10 May 2023' AND DB_OSP_ABSENCE.End_Date = '12 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2389  ' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2248  ' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2147  ' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2082  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1848' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '18 May 2022' AND DB_OSP_ABSENCE.End_Date = '19 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2108  ' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '15 May 2023' AND DB_OSP_ABSENCE.End_Date = '15 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '18 May 2022' AND DB_OSP_ABSENCE.End_Date = '20 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '24 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '28 May 2019' AND DB_OSP_ABSENCE.End_Date = '28 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '14 May 2018' AND DB_OSP_ABSENCE.End_Date = '18 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '30 May 2017' AND DB_OSP_ABSENCE.End_Date = '31 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1818' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2232  ' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2232  ' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2232  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2232  ' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2232  ' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2232  ' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2016' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2016' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2016' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '05 May 2023' AND DB_OSP_ABSENCE.End_Date = '05 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '24 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '02 May 2013' AND DB_OSP_ABSENCE.End_Date = '03 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 May 2012' AND DB_OSP_ABSENCE.End_Date = '03 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '19 May 2008' AND DB_OSP_ABSENCE.End_Date = '19 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '04 May 2007' AND DB_OSP_ABSENCE.End_Date = '04 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '30 May 2006' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1210' AND DB_OSP_ABSENCE.Start_Date = '30 May 2006' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2359  ' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '19 May 2011' AND DB_OSP_ABSENCE.End_Date = '19 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '10 May 2010' AND DB_OSP_ABSENCE.End_Date = '12 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '19 May 2009' AND DB_OSP_ABSENCE.End_Date = '19 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '19 May 2008' AND DB_OSP_ABSENCE.End_Date = '19 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '22 May 2007' AND DB_OSP_ABSENCE.End_Date = '22 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1411' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2472  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '02 May 2023' AND DB_OSP_ABSENCE.End_Date = '02 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2115' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2115' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2115' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2115' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2115' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2315' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2115' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '01 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '11 May 2017' AND DB_OSP_ABSENCE.End_Date = '12 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '04 May 2016' AND DB_OSP_ABSENCE.End_Date = '11 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '19 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1612' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '03 May 2023' AND DB_OSP_ABSENCE.End_Date = '03 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '20 May 2021' AND DB_OSP_ABSENCE.End_Date = '20 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '13 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1812' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2245  ' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '15 May 2017' AND DB_OSP_ABSENCE.End_Date = '15 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '13 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1802' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '01 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2231  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '796' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '796' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '796' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '796' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '25 May 2022' AND DB_OSP_ABSENCE.End_Date = '26 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2287  ' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '08 May 2025' AND DB_OSP_ABSENCE.End_Date = '08 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1993' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1828' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1850' AND DB_OSP_ABSENCE.Start_Date = '12 May 2016' AND DB_OSP_ABSENCE.End_Date = '20 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1850' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '04 May 2010' AND DB_OSP_ABSENCE.End_Date = '05 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0526' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0665' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '17 May 2018' AND DB_OSP_ABSENCE.End_Date = '17 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '10 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '15 May 2017' AND DB_OSP_ABSENCE.End_Date = '16 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '09 May 2016' AND DB_OSP_ABSENCE.End_Date = '09 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1839' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '06 May 2022' AND DB_OSP_ABSENCE.End_Date = '06 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2149  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2023' AND DB_OSP_ABSENCE.End_Date = '05 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2366  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '30 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0860' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2378  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2378  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2378  ' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2378  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '17 May 2016' AND DB_OSP_ABSENCE.End_Date = '18 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '13 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1724' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '17 May 2021' AND DB_OSP_ABSENCE.End_Date = '17 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1739' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2258  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '18 May 2022' AND DB_OSP_ABSENCE.End_Date = '20 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '13 May 2022' AND DB_OSP_ABSENCE.End_Date = '17 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2221  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1316' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1316' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1316' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1316' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1316' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1316' AND DB_OSP_ABSENCE.Start_Date = '07 May 2019' AND DB_OSP_ABSENCE.End_Date = '09 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2497  ' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2497  ' AND DB_OSP_ABSENCE.Start_Date = '29 May 2024' AND DB_OSP_ABSENCE.End_Date = '29 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2497  ' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2497  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2497  ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0215' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '29 May 2018' AND DB_OSP_ABSENCE.End_Date = '30 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '03 May 2016' AND DB_OSP_ABSENCE.End_Date = '05 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '08 May 2014' AND DB_OSP_ABSENCE.End_Date = '12 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 May 2010' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '28 May 2010' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1555' AND DB_OSP_ABSENCE.Start_Date = '19 May 2010' AND DB_OSP_ABSENCE.End_Date = '21 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2351  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2351  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2351  ' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2501  ' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2501  ' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2501  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1893' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1893' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1893' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1893' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '20 May 2022' AND DB_OSP_ABSENCE.End_Date = '20 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2137  ' AND DB_OSP_ABSENCE.Start_Date = '23 May 2025' AND DB_OSP_ABSENCE.End_Date = '23 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '10 May 2022' AND DB_OSP_ABSENCE.End_Date = '13 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1725' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2612  ' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '30 May 2024' AND DB_OSP_ABSENCE.End_Date = '30 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '03 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '14 May 2018' AND DB_OSP_ABSENCE.End_Date = '14 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1807' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1688' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '21 May 2010' AND DB_OSP_ABSENCE.End_Date = '21 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01304' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '25 May 2022' AND DB_OSP_ABSENCE.End_Date = '25 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2205  ' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2260  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2260  ' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2260  ' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1838' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '29 May 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '31 May 2019' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '13 May 2010' AND DB_OSP_ABSENCE.End_Date = '14 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '26 May 2009' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '11 May 2009' AND DB_OSP_ABSENCE.End_Date = '25 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0326' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '22 May 2025' AND DB_OSP_ABSENCE.End_Date = '22 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '24 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2192  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1767' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1767' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1767' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1767' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2482  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2482  ' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2482  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2482  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2482  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2482  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1581' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1581' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1581' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1581' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1581' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '16 May 2011' AND DB_OSP_ABSENCE.End_Date = '16 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0500' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '29 May 2019' AND DB_OSP_ABSENCE.End_Date = '30 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '22 May 2018' AND DB_OSP_ABSENCE.End_Date = '22 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '16 May 2006' AND DB_OSP_ABSENCE.End_Date = '17 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0854' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1718' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1718' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1718' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1718' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1718' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1718' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '13 May 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2352  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '17 May 2022' AND DB_OSP_ABSENCE.End_Date = '17 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2289  ' AND DB_OSP_ABSENCE.Start_Date = '10 May 2021' AND DB_OSP_ABSENCE.End_Date = '10 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1953' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1953' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1953' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1953' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1953' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1953' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '29 May 2015' AND DB_OSP_ABSENCE.End_Date = '29 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '04 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '09 May 2013' AND DB_OSP_ABSENCE.End_Date = '09 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '08 May 2012' AND DB_OSP_ABSENCE.End_Date = '10 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '17 May 2010' AND DB_OSP_ABSENCE.End_Date = '18 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '26 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '31 May 2007' AND DB_OSP_ABSENCE.End_Date = '31 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1265' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '30 May 2014' AND DB_OSP_ABSENCE.End_Date = '30 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1511' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '15 May 2023' AND DB_OSP_ABSENCE.End_Date = '15 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '25 May 2018' AND DB_OSP_ABSENCE.End_Date = '25 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1677' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2025' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '06 May 2025' AND DB_OSP_ABSENCE.End_Date = '09 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2379  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '12 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '30 May 2022' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '11 May 2021' AND DB_OSP_ABSENCE.End_Date = '12 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '10 May 2017' AND DB_OSP_ABSENCE.End_Date = '10 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '15 May 2013' AND DB_OSP_ABSENCE.End_Date = '15 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '27 May 2008' AND DB_OSP_ABSENCE.End_Date = '27 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '31 May 2006' AND DB_OSP_ABSENCE.End_Date = '31 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0630' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '05 May 2009' AND DB_OSP_ABSENCE.End_Date = '05 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '29 May 2008' AND DB_OSP_ABSENCE.End_Date = '29 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '28 May 2008' AND DB_OSP_ABSENCE.End_Date = '28 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1443' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0727' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0727' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0727' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0727' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0727' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '14 May 2014' AND DB_OSP_ABSENCE.End_Date = '14 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '25 May 2012' AND DB_OSP_ABSENCE.End_Date = '25 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1550' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '02 May 2023' AND DB_OSP_ABSENCE.End_Date = '03 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '17 May 2022' AND DB_OSP_ABSENCE.End_Date = '23 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '16 May 2022' AND DB_OSP_ABSENCE.End_Date = '16 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '17 May 2021' AND DB_OSP_ABSENCE.End_Date = '19 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '20 May 2019' AND DB_OSP_ABSENCE.End_Date = '22 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '25 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '02 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '12 May 2009' AND DB_OSP_ABSENCE.End_Date = '14 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '09 May 2008' AND DB_OSP_ABSENCE.End_Date = '09 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '10 May 2007' AND DB_OSP_ABSENCE.End_Date = '10 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0928' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '22 May 2018' AND DB_OSP_ABSENCE.End_Date = '23 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '04 May 2017' AND DB_OSP_ABSENCE.End_Date = '05 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '25 May 2016' AND DB_OSP_ABSENCE.End_Date = '27 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '11 May 2016' AND DB_OSP_ABSENCE.End_Date = '17 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '30 May 2006' AND DB_OSP_ABSENCE.End_Date = '31 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1172' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '17 May 2017' AND DB_OSP_ABSENCE.End_Date = '18 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1813' AND DB_OSP_ABSENCE.Start_Date = '31 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0536' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1689' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '24 May 2021' AND DB_OSP_ABSENCE.End_Date = '24 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 May 2019' AND DB_OSP_ABSENCE.End_Date = '03 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 May 2011' AND DB_OSP_ABSENCE.End_Date = '03 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 May 2007' AND DB_OSP_ABSENCE.End_Date = '03 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2025' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0855' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '12 May 2016' AND DB_OSP_ABSENCE.End_Date = '12 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1730' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '15 May 2018' AND DB_OSP_ABSENCE.End_Date = '15 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1766' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '27 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1897' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2329  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '29 May 2014' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '24 May 2014' AND DB_OSP_ABSENCE.End_Date = '28 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '19 May 2014' AND DB_OSP_ABSENCE.End_Date = '23 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1512' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '01 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '25 May 2016' AND DB_OSP_ABSENCE.End_Date = '25 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '19 May 2015' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '14 May 2015' AND DB_OSP_ABSENCE.End_Date = '14 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '07 May 2015' AND DB_OSP_ABSENCE.End_Date = '07 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '21 May 2012' AND DB_OSP_ABSENCE.End_Date = '23 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1458' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1908' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '27 May 2014' AND DB_OSP_ABSENCE.End_Date = '30 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '24 May 2013' AND DB_OSP_ABSENCE.End_Date = '24 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '22 May 2012' AND DB_OSP_ABSENCE.End_Date = '25 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1583' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1690' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1690' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1690' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '01 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '13 May 2015' AND DB_OSP_ABSENCE.End_Date = '15 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '29 May 2014' AND DB_OSP_ABSENCE.End_Date = '30 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '09 May 2013' AND DB_OSP_ABSENCE.End_Date = '09 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '22 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '08 May 2025' AND DB_OSP_ABSENCE.End_Date = '16 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1676' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1468' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1468' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1468' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1468' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1468' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1468' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '20 May 2013' AND DB_OSP_ABSENCE.End_Date = '20 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '02 May 2012' AND DB_OSP_ABSENCE.End_Date = '03 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '31 May 2011' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '31 May 2011' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1602' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2345  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2345  ' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2345  ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2345  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2345  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2345  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2308  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2308  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2308  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2308  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2308  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2125  ' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '10 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '14 May 2019' AND DB_OSP_ABSENCE.End_Date = '14 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '16 May 2016' AND DB_OSP_ABSENCE.End_Date = '16 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1711' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1644' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1644' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1644' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '12 May 2010' AND DB_OSP_ABSENCE.End_Date = '12 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '15 May 2009' AND DB_OSP_ABSENCE.End_Date = '15 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1328' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2427  ' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1857' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1857' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1857' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1857' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2049' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2049' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2049' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2049' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2049' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '28 May 2019' AND DB_OSP_ABSENCE.End_Date = '28 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '08 May 2025' AND DB_OSP_ABSENCE.End_Date = '09 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2051' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '10 May 2019' AND DB_OSP_ABSENCE.End_Date = '10 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '17 May 2016' AND DB_OSP_ABSENCE.End_Date = '20 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '29 May 2015' AND DB_OSP_ABSENCE.End_Date = '29 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '06 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '31 May 2007' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 May 2006' AND DB_OSP_ABSENCE.End_Date = '26 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0001  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '08 May 2017' AND DB_OSP_ABSENCE.End_Date = '11 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '20 May 2013' AND DB_OSP_ABSENCE.End_Date = '22 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1609' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1797' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1797' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '25 May 2023' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '16 May 2023' AND DB_OSP_ABSENCE.End_Date = '24 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '06 May 2023' AND DB_OSP_ABSENCE.End_Date = '15 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '05 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '30 May 2022' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2295  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1880' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1880' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1880' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '07 May 2008' AND DB_OSP_ABSENCE.End_Date = '13 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1141' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0202' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0202' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0202' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '07 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1570' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2022' AND DB_OSP_ABSENCE.End_Date = '03 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2327  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '31 May 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '23 May 2017' AND DB_OSP_ABSENCE.End_Date = '30 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '18 May 2017' AND DB_OSP_ABSENCE.End_Date = '19 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '09 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '20 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '31 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '02 May 2013' AND DB_OSP_ABSENCE.End_Date = '03 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '28 May 2012' AND DB_OSP_ABSENCE.End_Date = '30 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '16 May 2012' AND DB_OSP_ABSENCE.End_Date = '16 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0926' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '30 May 2018' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '09 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '22 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '20 May 2013' AND DB_OSP_ABSENCE.End_Date = '21 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '29 May 2012' AND DB_OSP_ABSENCE.End_Date = '30 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '01 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0952' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2433  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2013' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1815' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1815' AND DB_OSP_ABSENCE.Start_Date = '21 May 2015' AND DB_OSP_ABSENCE.End_Date = '21 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '02 May 2023' AND DB_OSP_ABSENCE.End_Date = '04 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '28 May 2022' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '14 May 2022' AND DB_OSP_ABSENCE.End_Date = '27 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1481' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '03 May 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '18 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '18 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '05 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '30 May 2018' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1860' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '17 May 2018' AND DB_OSP_ABSENCE.End_Date = '30 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '15 May 2018' AND DB_OSP_ABSENCE.End_Date = '16 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '17 May 2016' AND DB_OSP_ABSENCE.End_Date = '27 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1061' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '19 May 2006' AND DB_OSP_ABSENCE.End_Date = '19 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1154' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2590  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2025' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2590  ' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2025' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '05 May 2017' AND DB_OSP_ABSENCE.End_Date = '05 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '17 May 2012' AND DB_OSP_ABSENCE.End_Date = '17 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '08 May 2007' AND DB_OSP_ABSENCE.End_Date = '08 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '08 May 2006' AND DB_OSP_ABSENCE.End_Date = '08 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1269' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1961' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1961' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2418  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2418  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1912' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1912' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1912' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1912' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '10 May 2017' AND DB_OSP_ABSENCE.End_Date = '12 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '12 May 2016' AND DB_OSP_ABSENCE.End_Date = '13 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '06 May 2015' AND DB_OSP_ABSENCE.End_Date = '08 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '30 May 2012' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '23 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '15 May 2025' AND DB_OSP_ABSENCE.End_Date = '16 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '12 May 2025' AND DB_OSP_ABSENCE.End_Date = '12 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1593' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2196  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2196  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2196  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2196  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2196  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '29 May 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '31 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '03 May 2013' AND DB_OSP_ABSENCE.End_Date = '03 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '22 May 2012' AND DB_OSP_ABSENCE.End_Date = '22 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0140' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '19 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '08 May 2012' AND DB_OSP_ABSENCE.End_Date = '08 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '16 May 2011' AND DB_OSP_ABSENCE.End_Date = '16 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2431' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '30 May 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '25 May 2023' AND DB_OSP_ABSENCE.End_Date = '25 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '23 May 2023' AND DB_OSP_ABSENCE.End_Date = '23 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '19 May 2023' AND DB_OSP_ABSENCE.End_Date = '19 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2023' AND DB_OSP_ABSENCE.End_Date = '04 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2380  ' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '22 May 2013' AND DB_OSP_ABSENCE.End_Date = '22 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '25 May 2011' AND DB_OSP_ABSENCE.End_Date = '25 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '15 May 2006' AND DB_OSP_ABSENCE.End_Date = '16 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0893' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '09 May 2019' AND DB_OSP_ABSENCE.End_Date = '10 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1814' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '03 May 2022' AND DB_OSP_ABSENCE.End_Date = '06 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '01 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '23 May 2016' AND DB_OSP_ABSENCE.End_Date = '23 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '01394' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '10 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '24 May 2006' AND DB_OSP_ABSENCE.End_Date = '26 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0927' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '22 May 2013' AND DB_OSP_ABSENCE.End_Date = '23 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '22 May 2012' AND DB_OSP_ABSENCE.End_Date = '22 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1617' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '20 May 2010' AND DB_OSP_ABSENCE.End_Date = '20 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1405' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2322  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2322  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2322  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2322  ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2322  ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2322  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2537  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '17 May 2022' AND DB_OSP_ABSENCE.End_Date = '17 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1277' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2148  ' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2624  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0380' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2385  ' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2385  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2385  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2385  ' AND DB_OSP_ABSENCE.Start_Date = '24 May 2022' AND DB_OSP_ABSENCE.End_Date = '24 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2312  ' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2312  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1687' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1687' AND DB_OSP_ABSENCE.Start_Date = '13 May 2013' AND DB_OSP_ABSENCE.End_Date = '14 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1611' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1611' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1611' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '14 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1919' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2425  ' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2425  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2425  ' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2425  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2425  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2425  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2458  ' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '15 May 2024' AND DB_OSP_ABSENCE.End_Date = '17 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '11 May 2021' AND DB_OSP_ABSENCE.End_Date = '11 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '21 May 2019' AND DB_OSP_ABSENCE.End_Date = '21 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '21 May 2018' AND DB_OSP_ABSENCE.End_Date = '21 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '14 May 2015' AND DB_OSP_ABSENCE.End_Date = '14 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '27 May 2009' AND DB_OSP_ABSENCE.End_Date = '27 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '01 May 2007' AND DB_OSP_ABSENCE.End_Date = '01 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '22 May 2006' AND DB_OSP_ABSENCE.End_Date = '23 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '11 May 2006' AND DB_OSP_ABSENCE.End_Date = '11 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '21 May 2025' AND DB_OSP_ABSENCE.End_Date = '22 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0673' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2400  ' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2400  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2342  ' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2342  ' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2342  ' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2342  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '05 May 2021' AND DB_OSP_ABSENCE.End_Date = '05 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2228  ' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2048' AND DB_OSP_ABSENCE.Start_Date = '03 May 2023' AND DB_OSP_ABSENCE.End_Date = '05 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2048' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '24 May 2023' AND DB_OSP_ABSENCE.End_Date = '26 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2382  ' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '07 May 2013' AND DB_OSP_ABSENCE.End_Date = '08 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '02 May 2006' AND DB_OSP_ABSENCE.End_Date = '03 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1169' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2039' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '15 May 2018' AND DB_OSP_ABSENCE.End_Date = '29 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '09 May 2018' AND DB_OSP_ABSENCE.End_Date = '14 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '03 May 2017' AND DB_OSP_ABSENCE.End_Date = '04 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '03 May 2017' AND DB_OSP_ABSENCE.End_Date = '04 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '02 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '08 May 2013' AND DB_OSP_ABSENCE.End_Date = '08 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '31 May 2012' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1647' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0187' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0187' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0187' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0187' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0187' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0187' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '20 May 2024' AND DB_OSP_ABSENCE.End_Date = '21 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '07 May 2024' AND DB_OSP_ABSENCE.End_Date = '07 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '16 May 2017' AND DB_OSP_ABSENCE.End_Date = '16 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 May 2015' AND DB_OSP_ABSENCE.End_Date = '13 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 May 2013' AND DB_OSP_ABSENCE.End_Date = '13 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '06 May 2009' AND DB_OSP_ABSENCE.End_Date = '06 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '20 May 2008' AND DB_OSP_ABSENCE.End_Date = '20 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1449' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2270  ' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '06 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '04 May 2022' AND DB_OSP_ABSENCE.End_Date = '06 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '23 May 2019' AND DB_OSP_ABSENCE.End_Date = '23 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2065  ' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '14 May 2015' AND DB_OSP_ABSENCE.End_Date = '14 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '16 May 2011' AND DB_OSP_ABSENCE.End_Date = '20 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '05 May 2009' AND DB_OSP_ABSENCE.End_Date = '08 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '23 May 2008' AND DB_OSP_ABSENCE.End_Date = '23 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1296' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0338' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0338' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0338' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1683' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1683' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1683' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1683' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2576  ' AND DB_OSP_ABSENCE.Start_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2576  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2576  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2576  ' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2576  ' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2576  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '12 May 2021' AND DB_OSP_ABSENCE.End_Date = '12 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1541' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '16 May 2022' AND DB_OSP_ABSENCE.End_Date = '17 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '31 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '08 May 2012' AND DB_OSP_ABSENCE.End_Date = '09 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '21 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0272' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '21 May 2018' AND DB_OSP_ABSENCE.End_Date = '24 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1659' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '31 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1679' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '01 May 2024' AND DB_OSP_ABSENCE.End_Date = '02 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '12 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '23 May 2022' AND DB_OSP_ABSENCE.End_Date = '25 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '05 May 2021' AND DB_OSP_ABSENCE.End_Date = '07 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '16 May 2019' AND DB_OSP_ABSENCE.End_Date = '17 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '14 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1862' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '28 May 2019' AND DB_OSP_ABSENCE.End_Date = '30 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '27 May 2015' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '20 May 2015' AND DB_OSP_ABSENCE.End_Date = '26 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1693' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '09 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '20 May 2024' AND DB_OSP_ABSENCE.End_Date = '23 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '10 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '09 May 2022' AND DB_OSP_ABSENCE.End_Date = '12 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '05 May 2021' AND DB_OSP_ABSENCE.End_Date = '05 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2284  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1874' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1874' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1874' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1874' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '20 May 2024' AND DB_OSP_ABSENCE.End_Date = '21 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '23 May 2022' AND DB_OSP_ABSENCE.End_Date = '23 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2017' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1998' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1998' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '12 May 2025' AND DB_OSP_ABSENCE.End_Date = '14 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1904' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2451  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2451  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2451  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1307' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1307' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1307' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1307' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1307' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2240  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1736' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1911' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '24 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '09 May 2022' AND DB_OSP_ABSENCE.End_Date = '18 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '25 May 2021' AND DB_OSP_ABSENCE.End_Date = '26 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '18 May 2021' AND DB_OSP_ABSENCE.End_Date = '24 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2197  ' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2101  ' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2101  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '18 May 2022' AND DB_OSP_ABSENCE.End_Date = '19 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2097  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '06 May 2009' AND DB_OSP_ABSENCE.End_Date = '06 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1407' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '03 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '01 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '17 May 2013' AND DB_OSP_ABSENCE.End_Date = '17 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1592' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2356  ' AND DB_OSP_ABSENCE.Start_Date = '16 May 2025' AND DB_OSP_ABSENCE.End_Date = '16 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2356  ' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '04 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2356  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2356  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2440  ' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2440  ' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2553  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1734' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1734' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2493  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2254  ' AND DB_OSP_ABSENCE.Start_Date = '25 May 2021' AND DB_OSP_ABSENCE.End_Date = '26 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2254  ' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2254  ' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2179' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2131  ' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2131  ' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2131  ' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2131  ' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2194  ' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2194  ' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2194  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2194  ' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2194  ' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2194  ' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '24 May 2023' AND DB_OSP_ABSENCE.End_Date = '24 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1836' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1762' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1762' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1769' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '05 May 2014' AND DB_OSP_ABSENCE.End_Date = '11 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '02 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '27 May 2010' AND DB_OSP_ABSENCE.End_Date = '28 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '11 May 2009' AND DB_OSP_ABSENCE.End_Date = '15 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1494' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1548' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '08 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2175  ' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '30 May 2024' AND DB_OSP_ABSENCE.End_Date = '31 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '26 May 2022' AND DB_OSP_ABSENCE.End_Date = '27 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1945' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '31 May 2019' AND DB_OSP_ABSENCE.End_Date = '31 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '28 May 2019' AND DB_OSP_ABSENCE.End_Date = '28 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '21 May 2019' AND DB_OSP_ABSENCE.End_Date = '23 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2025' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '22 May 2018' AND DB_OSP_ABSENCE.End_Date = '22 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '03 May 2017' AND DB_OSP_ABSENCE.End_Date = '04 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '09 May 2016' AND DB_OSP_ABSENCE.End_Date = '09 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1752' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '15 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '01 May 2018' AND DB_OSP_ABSENCE.End_Date = '01 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '12 May 2006' AND DB_OSP_ABSENCE.End_Date = '12 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0806' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1861' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1861' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1861' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1861' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1861' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '19 May 2014' AND DB_OSP_ABSENCE.End_Date = '23 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1557' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '08 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1695' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2018' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2018' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2018' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2018' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2018' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2018' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2213  ' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2439  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2594  ' AND DB_OSP_ABSENCE.Start_Date = '21 May 2025' AND DB_OSP_ABSENCE.End_Date = '21 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '03 May 2016' AND DB_OSP_ABSENCE.End_Date = '04 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '03 May 2011' AND DB_OSP_ABSENCE.End_Date = '03 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1675' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '20 May 2021' AND DB_OSP_ABSENCE.End_Date = '21 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '05 May 2015' AND DB_OSP_ABSENCE.End_Date = '05 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '06 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1706' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '31 May 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '06 May 2015' AND DB_OSP_ABSENCE.End_Date = '07 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1765' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '12 May 2025' AND DB_OSP_ABSENCE.End_Date = '12 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '27 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '03 May 2016' AND DB_OSP_ABSENCE.End_Date = '03 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '16 May 2012' AND DB_OSP_ABSENCE.End_Date = '16 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '09 May 2012' AND DB_OSP_ABSENCE.End_Date = '15 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2406' AND DB_OSP_ABSENCE.Start_Date = '08 May 2012' AND DB_OSP_ABSENCE.End_Date = '08 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1882' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2452  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '10 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '10 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '10 May 2022' AND DB_OSP_ABSENCE.End_Date = '16 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '04 May 2022' AND DB_OSP_ABSENCE.End_Date = '07 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '02 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '27 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '26 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1165' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2488  ' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2488  ' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2488  ' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2488  ' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2488  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '25 May 2023' AND DB_OSP_ABSENCE.End_Date = '25 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '18 May 2016' AND DB_OSP_ABSENCE.End_Date = '18 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1744' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2436  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2436  ' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2436  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2436  ' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2436  ' AND DB_OSP_ABSENCE.Start_Date = '13 May 2025' AND DB_OSP_ABSENCE.End_Date = '15 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1845' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1845' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1845' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '02 May 2023' AND DB_OSP_ABSENCE.End_Date = '04 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2236  ' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '28 May 2024' AND DB_OSP_ABSENCE.End_Date = '28 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '22 May 2023' AND DB_OSP_ABSENCE.End_Date = '22 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '18 May 2021' AND DB_OSP_ABSENCE.End_Date = '18 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '14 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '62    ' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2654  ' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '26 May 2023' AND DB_OSP_ABSENCE.End_Date = '26 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '28 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 2022' AND DB_OSP_ABSENCE.End_Date = '04 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '10 May 2021' AND DB_OSP_ABSENCE.End_Date = '11 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2250  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2025' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1825' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1817' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '15 May 2023' AND DB_OSP_ABSENCE.End_Date = '19 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2368  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1182' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '28 May 2014' AND DB_OSP_ABSENCE.End_Date = '28 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '22 May 2014' AND DB_OSP_ABSENCE.End_Date = '23 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '07 May 2013' AND DB_OSP_ABSENCE.End_Date = '10 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '11 May 2012' AND DB_OSP_ABSENCE.End_Date = '11 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1564' AND DB_OSP_ABSENCE.Start_Date = '12 May 2011' AND DB_OSP_ABSENCE.End_Date = '13 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2290  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2290  ' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2290  ' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2290  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2290  ' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2290  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2394  ' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2394  ' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2394  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2394  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '01 May 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2237  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1942' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1942' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1887' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1938' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '18 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0016' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1959' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1959' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1959' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1959' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0683' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0683' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2087  ' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '14 May 2015' AND DB_OSP_ABSENCE.End_Date = '15 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1692' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '16 May 2023' AND DB_OSP_ABSENCE.End_Date = '19 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '20 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '15 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1941' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2523  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2523  ' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2523  ' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1745' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '30 May 2024' AND DB_OSP_ABSENCE.End_Date = '30 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1916' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2528  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2535  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1837' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1653' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1653' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1653' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1653' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1907' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1907' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1907' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1907' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '18 May 2021' AND DB_OSP_ABSENCE.End_Date = '18 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1923' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W181063' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '01 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '27 May 2011' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '12 May 2011' AND DB_OSP_ABSENCE.End_Date = '26 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0856' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2513  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2513  ' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2513  ' AND DB_OSP_ABSENCE.Start_Date = '14 May 2024' AND DB_OSP_ABSENCE.End_Date = '14 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2513  ' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '15 May 2017' AND DB_OSP_ABSENCE.End_Date = '18 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '31 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '20 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '13 May 2013' AND DB_OSP_ABSENCE.End_Date = '13 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '14 May 2012' AND DB_OSP_ABSENCE.End_Date = '18 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '11 May 2012' AND DB_OSP_ABSENCE.End_Date = '11 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 May 2012' AND DB_OSP_ABSENCE.End_Date = '08 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '02 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '16 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '12 May 2010' AND DB_OSP_ABSENCE.End_Date = '17 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '07 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0768' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1777' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1777' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '31 May 2023' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '29 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '27 May 2022' AND DB_OSP_ABSENCE.End_Date = '27 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '07 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '19 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '20 May 2019' AND DB_OSP_ABSENCE.End_Date = '20 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2106  ' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '05 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '30 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '10 May 2021' AND DB_OSP_ABSENCE.End_Date = '14 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '05 May 2021' AND DB_OSP_ABSENCE.End_Date = '09 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '04 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '03 May 2019' AND DB_OSP_ABSENCE.End_Date = '03 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '06 May 2015' AND DB_OSP_ABSENCE.End_Date = '06 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1530' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '17 May 2023' AND DB_OSP_ABSENCE.End_Date = '17 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '05 May 2021' AND DB_OSP_ABSENCE.End_Date = '05 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '28 May 2019' AND DB_OSP_ABSENCE.End_Date = '31 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '30 May 2018' AND DB_OSP_ABSENCE.End_Date = '31 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '05 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 May 2017' AND DB_OSP_ABSENCE.End_Date = '09 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '20 May 2016' AND DB_OSP_ABSENCE.End_Date = '26 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '15 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1571' AND DB_OSP_ABSENCE.Start_Date = '24 May 2010' AND DB_OSP_ABSENCE.End_Date = '24 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '18 May 2021' AND DB_OSP_ABSENCE.End_Date = '21 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '07 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '14 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '14 May 2018' AND DB_OSP_ABSENCE.End_Date = '14 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '12 May 2017' AND DB_OSP_ABSENCE.End_Date = '12 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '10 May 2017' AND DB_OSP_ABSENCE.End_Date = '11 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '29 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1748' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2321  ' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2321  ' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2321  ' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2321  ' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2321  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '30 May 2023' AND DB_OSP_ABSENCE.End_Date = '31 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '22 May 2019' AND DB_OSP_ABSENCE.End_Date = '23 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '16 May 2016' AND DB_OSP_ABSENCE.End_Date = '16 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1704' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2480  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2480  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2480  ' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '12 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1918' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '03 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '05 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '30 May 2007' AND DB_OSP_ABSENCE.End_Date = '30 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1264' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '05 May 2021' AND DB_OSP_ABSENCE.End_Date = '05 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '05 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1914' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2095  ' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2095  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2095  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2095  ' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2095  ' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '24 May 2018' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '09 May 2017' AND DB_OSP_ABSENCE.End_Date = '12 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '15 May 2012' AND DB_OSP_ABSENCE.End_Date = '16 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '02 May 2008' AND DB_OSP_ABSENCE.End_Date = '02 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '01 May 2008' AND DB_OSP_ABSENCE.End_Date = '01 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1280' AND DB_OSP_ABSENCE.Start_Date = '08 May 2025' AND DB_OSP_ABSENCE.End_Date = '09 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '30 May 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '23 May 2017' AND DB_OSP_ABSENCE.End_Date = '26 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '04 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0518' AND DB_OSP_ABSENCE.Start_Date = '15 May 2006' AND DB_OSP_ABSENCE.End_Date = '19 May 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1709' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1709' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1709' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1709' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1709' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '23 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '24 May 2016' AND DB_OSP_ABSENCE.End_Date = '27 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1809' AND DB_OSP_ABSENCE.Start_Date = '27 May 2015' AND DB_OSP_ABSENCE.End_Date = '27 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1732' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1732' AND DB_OSP_ABSENCE.Start_Date = '04 May 2021' AND DB_OSP_ABSENCE.End_Date = '05 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1732' AND DB_OSP_ABSENCE.Start_Date = '31 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1743' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1743' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1743' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1743' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1743' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '18 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2107  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2107  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2107  ' AND DB_OSP_ABSENCE.Start_Date = '22 May 2019' AND DB_OSP_ABSENCE.End_Date = '22 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '28 May 2014' AND DB_OSP_ABSENCE.End_Date = '28 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '30 May 2013' AND DB_OSP_ABSENCE.End_Date = '31 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '21 May 2012' AND DB_OSP_ABSENCE.End_Date = '22 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1608' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1981' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1981' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1981' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1981' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1981' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1981' AND DB_OSP_ABSENCE.Start_Date = '19 May 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1567' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '21 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2309  ' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2408  ' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2408  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2408  ' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '30 May 2024' AND DB_OSP_ABSENCE.End_Date = '30 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '09 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Pregnancy related', [Reason_For_Absence_Code] = 'PREGN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '14 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '16 May 2018' AND DB_OSP_ABSENCE.End_Date = '16 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '16 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1753' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '11 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '29 Feb 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '25 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '03 May 2018' AND DB_OSP_ABSENCE.End_Date = '03 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '16 May 2014' AND DB_OSP_ABSENCE.End_Date = '16 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1715' AND DB_OSP_ABSENCE.Start_Date = '21 May 2025' AND DB_OSP_ABSENCE.End_Date = '21 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '30 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '05 May 2011' AND DB_OSP_ABSENCE.End_Date = '06 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '08 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1588' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '06 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2391  ' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1751' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '08 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '29 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '11 May 2012' AND DB_OSP_ABSENCE.End_Date = '11 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '13 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '16 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '19 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1257' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '21 May 2024' AND DB_OSP_ABSENCE.End_Date = '22 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '15 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '24 May 2018' AND DB_OSP_ABSENCE.End_Date = '25 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '18 May 2016' AND DB_OSP_ABSENCE.End_Date = '20 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1783' AND DB_OSP_ABSENCE.Start_Date = '18 May 2015' AND DB_OSP_ABSENCE.End_Date = '18 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '27 May 2011' AND DB_OSP_ABSENCE.End_Date = '27 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '14 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '14 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '28 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0929' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '13 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '17 May 2023' AND DB_OSP_ABSENCE.End_Date = '17 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '02 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2042' AND DB_OSP_ABSENCE.Start_Date = '30 May 2025' AND DB_OSP_ABSENCE.End_Date = '30 May 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2430  ' AND DB_OSP_ABSENCE.Start_Date = '16 May 2023' AND DB_OSP_ABSENCE.End_Date = '16 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '31 May 2018' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '10 May 2018' AND DB_OSP_ABSENCE.End_Date = '25 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '09 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '19 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '10 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '16 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '28 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1866' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2089  ' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '16 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '26 May 2010' AND DB_OSP_ABSENCE.End_Date = '28 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '26 May 2009' AND DB_OSP_ABSENCE.End_Date = '26 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '09 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '19 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = 'W160862' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '01 May 2014' AND DB_OSP_ABSENCE.End_Date = '07 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '03 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '02 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '16 May 2013' AND DB_OSP_ABSENCE.End_Date = '16 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '02 May 2013' AND DB_OSP_ABSENCE.End_Date = '02 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '21 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '18 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '17 May 2012' AND DB_OSP_ABSENCE.End_Date = '17 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '11 May 2012' AND DB_OSP_ABSENCE.End_Date = '15 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '11 May 2012' AND DB_OSP_ABSENCE.End_Date = '15 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '04 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '28 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '02 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '12 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0307' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '11 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '28 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1540' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '11 Jun 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1952' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '26 May 2022' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '25 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '25 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '27 May 2021' AND DB_OSP_ABSENCE.End_Date = '23 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '07 May 2021' AND DB_OSP_ABSENCE.End_Date = '26 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hormone related', [Reason_For_Absence_Code] = 'HORM' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '06 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '22 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '06 Nov 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '01 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '21 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '06 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '24 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1586' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '24 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2313  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2313  ' AND DB_OSP_ABSENCE.Start_Date = '23 May 2023' AND DB_OSP_ABSENCE.End_Date = '23 May 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2313  ' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2313  ' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '05 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2313  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '28 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '26 May 2021' AND DB_OSP_ABSENCE.End_Date = '28 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '01 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1931' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '17 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '07 May 2019' AND DB_OSP_ABSENCE.End_Date = '08 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '10 Apr 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '22 Jun 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '30 May 2018' AND DB_OSP_ABSENCE.End_Date = '31 May 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '27 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '08 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '08 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '21 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '16 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '28 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '15 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2009' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '09 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '03 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '16 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '04 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '02 Feb 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1034' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '07 Feb 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2446  ' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '07 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2446  ' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2446  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2446  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '07 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2191  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2191  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1960' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '11 Sep 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2109  ' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '21 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2109  ' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '26 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2109  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '08 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2109  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2109  ' AND DB_OSP_ABSENCE.Start_Date = '11 May 2022' AND DB_OSP_ABSENCE.End_Date = '11 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2109  ' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0970' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0970' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0970' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0970' AND DB_OSP_ABSENCE.Start_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0970' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0970' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2064  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '11 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '09 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '13 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '26 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2316  ' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '14 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '16 May 2017' AND DB_OSP_ABSENCE.End_Date = '17 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '03 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '17 May 2016' AND DB_OSP_ABSENCE.End_Date = '17 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '30 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '06 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1708' AND DB_OSP_ABSENCE.Start_Date = '07 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '07 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '26 Jan 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '29 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '20 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '10 May 2017' AND DB_OSP_ABSENCE.End_Date = '12 May 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '23 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '26 May 2016' AND DB_OSP_ABSENCE.End_Date = '26 May 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '02 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '14 May 2015' AND DB_OSP_ABSENCE.End_Date = '15 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '19 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '03 Oct 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '25 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '10 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '30 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '16 May 2013' AND DB_OSP_ABSENCE.End_Date = '16 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '19 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '12 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '17 May 2012' AND DB_OSP_ABSENCE.End_Date = '17 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '13 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '14 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '09 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '22 Oct 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '05 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '10 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '24 Jul 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '06 May 2009' AND DB_OSP_ABSENCE.End_Date = '08 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '04 Dec 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '29 May 2008' AND DB_OSP_ABSENCE.End_Date = '30 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '28 May 2008' AND DB_OSP_ABSENCE.End_Date = '28 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '15 Feb 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '20 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '20 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '17 Jan 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1352' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '20 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '04 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '28 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '18 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '12 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '22 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '13 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '01 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '25 Sep 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '17 Oct 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2249  ' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '15 Jul 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '08 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '01 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '31 Oct 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '28 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '15 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '01 May 2012' AND DB_OSP_ABSENCE.End_Date = '03 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '10 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '14 Apr 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '13 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '20 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1563' AND DB_OSP_ABSENCE.Start_Date = '21 May 2010' AND DB_OSP_ABSENCE.End_Date = '21 May 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '26 Feb 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '17 Nov 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '04 Aug 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '05 Jun 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '22 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '24 Mar 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '10 Feb 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '12 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '07 Jan 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '16 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '15 Sep 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '22 Jul 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '14 May 2015' AND DB_OSP_ABSENCE.End_Date = '14 May 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '16 Mar 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2015' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '18 Nov 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '21 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '27 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '02 Jun 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2013' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '20 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '22 Nov 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '15 May 2013' AND DB_OSP_ABSENCE.End_Date = '17 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Dizziness and/or Vertigo', [Reason_For_Absence_Code] = 'DIZ&VER' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '01 May 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '04 Nov 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '21 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '19 Jan 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '10 Sep 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1553' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '20 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '10 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '09 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '13 Aug 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '16 Jul 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '22 May 2024' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '03 May 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '09 Feb 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Virus', [Reason_For_Absence_Code] = 'VIRUS' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '24 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '22 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '23 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '29 Jun 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '29 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '05 May 2022' AND DB_OSP_ABSENCE.End_Date = '06 May 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '20 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '06 Feb 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2339  ' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '03 Dec 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Hospital appointment and/or treatment', [Reason_For_Absence_Code] = 'APPT' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1691' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1691' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '25 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1691' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '11 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '03 Aug 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '19 Sep 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2017' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '19 Dec 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1841' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2016' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '648' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '24 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '04 Oct 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '18 Sep 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '26 Jun 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '22 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '01 Mar 2024' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '09 Nov 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '03 Mar 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '25 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '27 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '08 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '10 Mar 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '27 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '29 Jan 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '27 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '13 Mar 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '30 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '30 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '20 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '15 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '13 Sep 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '12 Jun 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '19 Oct 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1927' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2025' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1606' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1606' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1606' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1606' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1606' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '02 Mar 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1606' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '14 Mar 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '05 Apr 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '17 Feb 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '03 Jan 2023' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '02 Dec 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '03 Nov 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '05 Sep 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Tooth issues', [Reason_For_Absence_Code] = 'TOO' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '06 Apr 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '14 Jan 2022' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '25 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '01 Oct 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '17 Sep 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '09 Aug 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '06 Jul 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '17 May 2021' AND DB_OSP_ABSENCE.End_Date = '18 May 2021' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '23 Dec 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '12 Oct 2020' AND DB_OSP_ABSENCE.End_Date = '13 Oct 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '28 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '25 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '21 Aug 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '01 Jul 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '03 Apr 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '21 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '20 Jan 2020' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '31 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '24 Dec 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '11 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '10 Nov 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '30 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '24 Oct 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '16 Aug 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '19 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '17 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '12 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '05 Jul 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '31 May 2019' AND DB_OSP_ABSENCE.End_Date = '31 May 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Sports injury (unpaid)', [Reason_For_Absence_Code] = 'SPORIN' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '08 Feb 2019' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2035' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '07 Dec 2018' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '26 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '12 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '09 Sep 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '22 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '11 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '21 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '01 Aug 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '18 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '14 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '04 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '03 Jul 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '20 May 2014' AND DB_OSP_ABSENCE.End_Date = '21 May 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '22 Jan 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '28 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '31 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '23 Jul 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '24 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '28 May 2013' AND DB_OSP_ABSENCE.End_Date = '10 Jun 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '11 May 2013' AND DB_OSP_ABSENCE.End_Date = '27 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '01 May 2013' AND DB_OSP_ABSENCE.End_Date = '10 May 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '30 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '15 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '08 Apr 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '31 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '18 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '11 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2013' AND DB_OSP_ABSENCE.End_Date = '04 Mar 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '25 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '16 Jan 2013' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '12 Oct 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '15 Aug 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '11 Jul 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '03 Feb 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '17 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '18 Jan 2012' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '20 Oct 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '23 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '06 Sep 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '13 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '31 May 2011' AND DB_OSP_ABSENCE.End_Date = '06 Jun 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Respiratory issues', [Reason_For_Absence_Code] = 'RESPI' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '13 May 2011' AND DB_OSP_ABSENCE.End_Date = '20 May 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '21 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '23 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '07 Mar 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '04 Feb 2011' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '26 Nov 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '10 Aug 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '02 Jul 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '04 Jun 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '23 Apr 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '26 Mar 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '12 Jan 2010' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '22 Dec 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '13 Nov 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2009' AND DB_OSP_ABSENCE.End_Date = '17 Aug 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '18 May 2009' AND DB_OSP_ABSENCE.End_Date = '22 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '11 May 2009' AND DB_OSP_ABSENCE.End_Date = '15 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '01 May 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '24 Apr 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '30 Jan 2009' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '14 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '05 Nov 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '27 May 2008' AND DB_OSP_ABSENCE.End_Date = '27 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '19 May 2008' AND DB_OSP_ABSENCE.End_Date = '23 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '13 May 2008' AND DB_OSP_ABSENCE.End_Date = '16 May 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '21 Apr 2008' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '26 Oct 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '06 Aug 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Post Op recovery', [Reason_For_Absence_Code] = 'REC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '13 Jul 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '29 May 2007' AND DB_OSP_ABSENCE.End_Date = '30 May 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '14 Feb 2007' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '27 Nov 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '23 Oct 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')
UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1331' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2006' AND DB_OSP_ABSENCE.End_Date = '17 Mar 2006' AND DB_OSP_ABSENCE.Reason = 'Sick')