UPDATE DB_OSP_ABSENCE SET [Reason_For_Absence] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '15 May 2024' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1726' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '1726' 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '31 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] = '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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1726' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = '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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = '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)) = '1726' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1726' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1726' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1842' 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)) = '1842' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1842' 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = '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)) = '1842' 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)) = '1842' 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)) = '1842' 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] = '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)) = '1842' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '06 May 2020' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '14 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1842' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = '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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1842' 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)) = '1842' 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '04 Aug 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)) = '1842' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1842' 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)) = '1842' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1842' 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] = '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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 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)) = '1842' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' 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)) = '1842' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '20 May 2025' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1842' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1889' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 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)) = '1889' 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)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '11 Mar 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)) = '1889' 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] = '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)) = '1889' 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] = '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)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1889' 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] = '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)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1889' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1889' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '25 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' 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] = '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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '23 Oct 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)) = '1980' 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] = '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)) = '1980' 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] = '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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1980' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '27 May 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1980' 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1980' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1980' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1968' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1968' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1853' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1853' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1853' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1763' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1763' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1763' 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)) = '1763' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1763' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '10 May 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)) = '1763' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1763' 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] = '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)) = '1763' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1763' 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] = '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)) = '1763' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1763' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2126  ' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '2126  ' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '2126  ' AND DB_OSP_ABSENCE.Start_Date = '27 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] = '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)) = '2126  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2126  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2126  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1654' AND DB_OSP_ABSENCE.Start_Date = '04 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] = '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)) = '1654' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1863' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1863' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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)) = '1863' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1863' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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] = '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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 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)) = '1863' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '1863' 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)) = '1863' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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)) = '1459' 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1459' 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] = '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)) = '1459' 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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] = '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)) = '1459' 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] = '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)) = '1459' 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '06 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] = '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)) = '1459' 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] = '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)) = '1459' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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)) = '1459' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1459' 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '07 Mar 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1459' 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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)) = '1459' 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] = '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)) = '1459' 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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1459' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '1459' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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] = '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)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1459' 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] = '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)) = '1459' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1459' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1632' 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '24 Mar 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1632' 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] = '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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1632' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1632' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1632' 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)) = '1208' 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)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' 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] = '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)) = '1208' 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] = '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)) = '1208' 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] = '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)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' 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] = '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)) = '1208' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1208' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '19 May 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2023' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1770' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '30 May 2017' AND DB_OSP_ABSENCE.End_Date = '04 Jun 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1770' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '1770' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' 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)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1835' 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)) = '1835' 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)) = '1835' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1835' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1645' 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)) = '1645' 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '23 May 2024' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '20 May 2024' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '1645' 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1645' 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)) = '1645' 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1645' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1645' 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] = '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)) = '1645' 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1645' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1645' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '1645' 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '14 Aug 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1645' 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] = '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)) = '1645' 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] = '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)) = '1645' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1645' 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] = '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)) = '1645' 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)) = '1645' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '08 May 2018' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '1645' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' 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)) = '1645' 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '10 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1645' AND DB_OSP_ABSENCE.Start_Date = '20 May 2025' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1645' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1645' 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] = '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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '04 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] = '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)) = '1575' 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '11 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] = '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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1575' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' 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)) = '1575' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1575' 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] = '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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '26 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1575' 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)) = '1575' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1575' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '24 May 2024' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '2318  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '2318  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' 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)) = '2318  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2318  ' 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)) = '2318  ' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '06 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1834' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' 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)) = '1834' 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] = '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)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '02 Mar 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)) = '1834' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1834' 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] = '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)) = '1834' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1834' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '2343  ' 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)) = '1326' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '28 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] = '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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' 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] = '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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1326' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1326' 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1326' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1326' 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)) = '1326' 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)) = '1326' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1326' 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)) = '2303  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2303  ' 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)) = '2303  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2303  ' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2303  ' AND DB_OSP_ABSENCE.Start_Date = '19 May 2025' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '2303  ' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '2114  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '13 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '2114  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '2114  ' 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' 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] = '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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2021' AND DB_OSP_ABSENCE.End_Date = '07 Apr 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '10 Jun 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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '2114  ' AND DB_OSP_ABSENCE.Start_Date = '12 May 2025' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '2084  ' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '2084  ' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '2084  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1000' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1000' 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] = '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)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '04 May 2010' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1000' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1878' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1878' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '30 May 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)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '24 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1878' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1878' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1878' AND DB_OSP_ABSENCE.Start_Date = '23 May 2017' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1878' 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)) = '1827' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1827' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' 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)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1827' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0434' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0434' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0434' 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)) = '0434' 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)) = '0434' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '0434' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1996' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1996' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1996' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' 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)) = '1996' AND DB_OSP_ABSENCE.Start_Date = '28 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] = '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)) = '1996' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1996' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2155  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2155  ' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2155  ' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '2155  ' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '2155  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2155  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2093  ' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '2093  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '2093  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2093  ' 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)) = '2093  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2093  ' AND DB_OSP_ABSENCE.Start_Date = '04 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] = '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)) = '2093  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1740' 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '28 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1740' 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '29 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] = '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)) = '1740' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1740' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '12 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1740' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1740' 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '17 Dec 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)) = '1740' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1556' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1556' 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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)) = '1556' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1556' 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] = '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)) = '1556' 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] = '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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1556' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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)) = '1556' 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] = '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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = '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)) = '1556' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '10 May 2016' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1556' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = '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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1556' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1556' 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '11 May 2020' AND DB_OSP_ABSENCE.End_Date = '25 May 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '10 May 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1781' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1781' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '05 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '2306  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '2306  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' 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)) = '2306  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2306  ' AND DB_OSP_ABSENCE.Start_Date = '15 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '18 Feb 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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1656' 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] = '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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2012' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1656' AND DB_OSP_ABSENCE.Start_Date = '30 Jul 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)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2365  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '2365  ' 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)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2365  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1776' 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] = '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)) = '1776' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1776' AND DB_OSP_ABSENCE.Start_Date = '13 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1776' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1776' 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)) = '1776' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2038' 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] = '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)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '2038' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2022' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '2038' 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)) = '2038' 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)) = '2038' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '2038' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2574  ' AND DB_OSP_ABSENCE.Start_Date = '21 Aug 2025' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '2574  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '2574  ' 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)) = '2574  ' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2574  ' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 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)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '2401  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2401  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2401  ' 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)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2401  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '02 May 2025' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '2401  ' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '2546  ' 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)) = '2546  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2546  ' 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)) = '2546  ' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '2546  ' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2546  ' 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)) = '2546  ' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '2546  ' 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '08 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '13 May 2020' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '05 May 2020' AND DB_OSP_ABSENCE.End_Date = '12 May 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)) = '1826' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1826' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1826' 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] = '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)) = '1826' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2158  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '2158  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '29 May 2025' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '2158  ' AND DB_OSP_ABSENCE.Start_Date = '12 May 2025' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '2468  ' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1705' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1705' AND DB_OSP_ABSENCE.Start_Date = '19 May 2017' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1705' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1705' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1705' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1596' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1596' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1596' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1596' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1596' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1596' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1102' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1102' 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)) = '1102' 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1102' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '08 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] = '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)) = '1102' 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1102' 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1102' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '23 May 2017' AND DB_OSP_ABSENCE.End_Date = '24 May 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '1102' 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] = '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)) = '1102' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2015' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '15 Mar 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '24 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1102' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '08 Feb 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '1102' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '04 May 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)) = '1102' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1102' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '28 May 2008' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1102' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '22 Sep 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)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '21 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1102' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1102' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1852' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1852' 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)) = '1852' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '2383  ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2383  ' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '2383  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '2383  ' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '2383  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2383  ' 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)) = '2383  ' 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)) = '1964' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1964' 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] = '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)) = '1964' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' 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)) = '1964' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1964' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '26 May 2020' AND DB_OSP_ABSENCE.End_Date = '29 May 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)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1964' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1505' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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)) = '1505' 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] = '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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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] = '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)) = '1505' 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)) = '1505' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1505' 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] = '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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '05 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] = '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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1505' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1505' 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)) = '1505' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '08 Sep 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)) = '1505' 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)) = '1505' 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] = '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)) = '1505' 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)) = '1505' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' 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] = '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)) = '2357  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '06 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] = '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)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '15 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2357  ' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' 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] = '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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 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)) = '1381' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '30 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] = '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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1381' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1143' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '21 May 2024' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1143' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1143' 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1143' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '08 May 2018' AND DB_OSP_ABSENCE.End_Date = '10 May 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)) = '1143' 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] = '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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1143' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1143' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1143' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '28 Jul 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)) = '1143' 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)) = '1143' 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1143' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1143' 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1143' 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '1143' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' 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)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1143' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2467' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2467' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2326  ' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2242  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' 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)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '2242  ' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2242  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '30 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] = '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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '1719' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1719' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1719' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '26 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1719' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1671' 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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '28 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '1671' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' 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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1671' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1671' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1671' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1671' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1671' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '01 May 2020' AND DB_OSP_ABSENCE.End_Date = '05 Jun 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '07 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2019' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1849' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1849' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '1849' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0868' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '06 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] = '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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '25 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '0868' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '05 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] = '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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '09 May 2011' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '21 Feb 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '0868' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '0868' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '22 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '22 Oct 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)) = '0868' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '0868' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '2105  ' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '01 Apr 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)) = '2105  ' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '2105  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2105  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2105  ' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '26 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] = '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)) = '1429' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2023' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1429' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1429' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '02 May 2017' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '03 Mar 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1429' 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] = '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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1429' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1429' AND DB_OSP_ABSENCE.Start_Date = '24 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1712' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2025' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1935' 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1935' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1935' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1935' 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '1935' 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] = '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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2023' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1935' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '05 Dec 2022' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1935' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1935' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1935' 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1935' 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] = '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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1935' 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)) = '1935' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1935' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '30 Aug 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)) = '0780' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '0780' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0780' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0780' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0780' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0780' 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] = '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)) = '0780' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1554' 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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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)) = '1554' 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)) = '1554' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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)) = '1554' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1554' 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] = '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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '31 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] = '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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '1554' 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] = '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)) = '1554' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1554' 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] = '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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1554' 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] = '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)) = '1554' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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] = '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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' 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] = '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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '26 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1554' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1554' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '1135' 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)) = '1135' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1135' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1135' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1135' 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)) = '1135' 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)) = '1135' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1135' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1135' 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)) = '1135' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1135' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1135' 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] = '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)) = '2247  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2247  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2247  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2247  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2247  ' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '2247  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = '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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2022' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1452' 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)) = '1452' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1452' 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)) = '1452' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '22 May 2019' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1452' 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] = '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)) = '1452' 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1452' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2016' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' 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] = '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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1452' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1521' AND DB_OSP_ABSENCE.Start_Date = '05 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] = '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)) = '1521' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1521' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1521' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1521' 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)) = '1521' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1521' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1521' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '2486  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2486  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2486  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2392  ' 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)) = '2392  ' 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] = '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)) = '1357' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' 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] = '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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '21 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1357' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1357' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1357' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2011' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' 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] = '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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '1357' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '18 Apr 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)) = '1357' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '1357' 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)) = '1357' 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)) = '1735' 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)) = '1735' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 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)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1735' 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)) = '1735' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1735' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '06 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] = '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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1780' 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2022' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1780' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '02 Aug 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1780' 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)) = '1780' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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] = '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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1780' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1780' 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)) = '1940' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1940' AND DB_OSP_ABSENCE.Start_Date = '10 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1940' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1940' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1940' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1940' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1940' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1940' 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)) = '1940' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1940' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '15 May 2018' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '16 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0120' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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] = '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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '14 Apr 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '0120' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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)) = '0120' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '01 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '0120' 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '01 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '0120' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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] = '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)) = '0120' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '0120' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '0120' 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '0120' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 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] = '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)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' 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] = '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)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '0384' 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '05 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '09 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '03 Apr 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '07 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '26 Sep 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '30 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '04 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '21 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = '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)) = '0384' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 May 2014' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '0384' 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)) = '0384' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0384' 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)) = '0384' 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)) = '0384' 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)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2013' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '28 Oct 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '27 Sep 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 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)) = '0384' 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] = '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)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0384' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '19 Mar 2009' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '04 Jul 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '0384' 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] = '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)) = '0384' 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '21 Mar 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '14 Mar 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)) = '0384' 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '29 Feb 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0384' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '0384' 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] = '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)) = '0384' 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] = '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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '17 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '29 Sep 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '14 Sep 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '07 Sep 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '31 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '0384' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '0384' 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)) = '0384' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0384' 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)) = '0384' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1865' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1865' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '08 May 2024' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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)) = '1239' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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)) = '1239' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2022' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1239' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '12 Nov 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)) = '1239' 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2015' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '30 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1239' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '22 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '21 May 2012' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2011' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1239' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '1239' 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '1239' 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '05 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] = '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)) = '1239' 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1239' 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] = '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)) = '1239' 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)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2006' AND DB_OSP_ABSENCE.End_Date = '04 Sep 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)) = '1239' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1239' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1239' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1821' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '2073  ' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '2073  ' 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)) = '2073  ' 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)) = '2073  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2073  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2073  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1308' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '10 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '10 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '09 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1871' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1871' 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] = '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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1871' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1871' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '30 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '23 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1871' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '18 Jul 2012' AND DB_OSP_ABSENCE.End_Date = '18 Jul 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2008' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '21 May 2008' AND DB_OSP_ABSENCE.End_Date = '21 May 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)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1247' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1247' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2047' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2047' 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)) = '2047' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2047' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' 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] = '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)) = '1894' 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)) = '1894' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1894' 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)) = '1894' 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)) = '1894' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1894' 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)) = '1894' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1894' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1418' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2018' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1418' 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] = '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)) = '1418' 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)) = '1418' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1418' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1418' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1418' AND DB_OSP_ABSENCE.Start_Date = '17 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '22 Nov 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '06 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '31 May 2022' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1661' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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)) = '1661' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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)) = '1661' 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '11 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] = '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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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)) = '1661' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1661' 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)) = '1614' 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1614' 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] = '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)) = '1614' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '11 Aug 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '01 May 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)) = '1614' 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)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '24 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1614' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = '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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = '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)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1614' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1854' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1854' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1854' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1854' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1854' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1854' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1854' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '09 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1682' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '06 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '10 Aug 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1682' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1682' 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)) = '1682' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '29 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '18 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1682' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1682' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '16 May 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '28 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '2304  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '2304  ' 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)) = '2304  ' 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '26 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '23 Feb 2024' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '2304  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '2304  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '03 May 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)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2304  ' AND DB_OSP_ABSENCE.Start_Date = '20 Sep 2021' AND DB_OSP_ABSENCE.End_Date = '21 Sep 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)) = '2304  ' 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] = '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)) = '2593  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '2317  ' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '2317  ' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2317  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2091  ' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2091  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '2091  ' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '2091  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2091  ' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2091  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '2091  ' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2091  ' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1597' AND DB_OSP_ABSENCE.Start_Date = '08 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] = '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)) = '1597' AND DB_OSP_ABSENCE.Start_Date = '11 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1597' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1597' 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] = '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)) = '1597' 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] = '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)) = '1597' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1939' 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '25 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] = '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)) = '1939' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = '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)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '06 May 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1939' 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)) = '1939' 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '20 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '21 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] = '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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1939' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1939' 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)) = '1939' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1939' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '2181  ' 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)) = '2181  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '14 May 2024' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1898' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2023' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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)) = '1898' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1898' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1898' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '20 Feb 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1898' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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)) = '1898' 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1898' 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] = '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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1898' 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] = '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)) = '1898' 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)) = '1898' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1898' 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)) = '1898' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1898' 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] = '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)) = '1936' 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1936' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = '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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '06 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1936' 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)) = '1936' 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1936' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 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)) = '1936' 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)) = '1936' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '08 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1936' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1936' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '13 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1936' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '2195  ' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2046' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2046' AND DB_OSP_ABSENCE.Start_Date = '13 May 2021' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '2046' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '2046' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2046' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1561' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' 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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1561' 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)) = '1561' 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)) = '1561' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '13 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1561' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' 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] = '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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2012' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1561' 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] = '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)) = '1561' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1561' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1065' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '27 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1065' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '23 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1065' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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)) = '1065' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1065' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '23 Nov 2009' 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)) = '1065' 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)) = '1065' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1065' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1065' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1785' AND DB_OSP_ABSENCE.Start_Date = '04 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1785' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1785' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2015' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1785' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1502' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1502' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' 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] = '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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1502' 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] = '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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '1502' 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] = '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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1502' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1502' 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] = '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)) = '2040' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2040' 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)) = '2040' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2040' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '22 Jul 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)) = '2040' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '12 Nov 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)) = '2040' 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] = '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)) = '2040' 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] = '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)) = '2040' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2040' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1665' 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1665' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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] = '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)) = '1665' 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '11 Jan 2021' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1665' 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1665' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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] = '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)) = '1665' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1665' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1665' 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] = '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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2013' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1665' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1665' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1364' AND DB_OSP_ABSENCE.Start_Date = '08 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] = '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)) = '1364' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1364' AND DB_OSP_ABSENCE.Start_Date = '14 Oct 2010' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1364' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1364' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1364' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1364' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1364' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2396  ' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '2396  ' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2022' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '2396  ' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '2396  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2396  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '2618' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1771' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1771' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1909' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '2008' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '21 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] = '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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2022' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '16 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '09 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '02 Feb 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)) = '2008' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2008' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '29 Apr 2020' AND DB_OSP_ABSENCE.End_Date = '01 May 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)) = '2008' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '2008' 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] = '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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2008' 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)) = '2008' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '2008' 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)) = '1823' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '02 Feb 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)) = '1823' 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)) = '1823' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '0977' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' 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] = '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)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '0977' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '0977' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1824' 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)) = '1824' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1824' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1824' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1824' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '26 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1703' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '31 May 2019' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2019' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '19 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '09 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1703' 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] = '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)) = '1703' 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1703' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '09 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '1703' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = '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)) = '1703' 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)) = '1703' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1703' 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] = '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)) = '1703' 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] = '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)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '03 May 2012' AND DB_OSP_ABSENCE.End_Date = '04 May 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)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '1295' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1295' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '08 May 2008' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '07 May 2008' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '06 May 2008' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '22 May 2006' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1295' AND DB_OSP_ABSENCE.Start_Date = '16 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 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)) = '2113  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2113  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2113  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '10 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '2113  ' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '2113  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2187  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '07 Jan 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)) = '2187  ' AND DB_OSP_ABSENCE.Start_Date = '10 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '2187  ' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2187  ' 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)) = '2187  ' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '10 May 2018' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '17 Mar 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1844' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1844' 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] = '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)) = '1844' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1844' 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)) = '1844' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1844' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1669' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1669' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1669' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1669' 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] = '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)) = '1669' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1669' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1669' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2246  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2246  ' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2246  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2246  ' 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)) = '2246  ' AND DB_OSP_ABSENCE.Start_Date = '22 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '0344' 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '0344' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0344' 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] = '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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '10 May 2011' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '0344' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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)) = '0344' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '15 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '05 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '0344' 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)) = '0344' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0344' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1846' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1846' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1846' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1846' AND DB_OSP_ABSENCE.Start_Date = '14 Jun 2016' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1846' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2511' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2511' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2511' 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)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1722' 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)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1722' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1722' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1722' 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] = '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)) = '2549  ' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2549  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1638' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1638' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1638' AND DB_OSP_ABSENCE.Start_Date = '26 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] = '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)) = '1638' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1638' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1858' 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] = '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)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1858' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '26 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1858' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1858' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2017' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1858' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1858' 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)) = '1858' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2186  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2023' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2186  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '2186  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '2186  ' 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] = '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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '05 Sep 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)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2186  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2024' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2165  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' 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] = '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)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2023' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '2165  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' 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] = '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)) = '2165  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jun 2022' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '2165  ' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '2165  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2512  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2512  ' AND DB_OSP_ABSENCE.Start_Date = '15 May 2024' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '2218  ' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '2218  ' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2218  ' 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)) = '2218  ' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1787' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2024' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1787' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '04 May 2022' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1787' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1787' 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '27 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1787' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1787' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1787' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1833' 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)) = '1833' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1833' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1833' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1833' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1833' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1833' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1310' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1310' 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1310' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' 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)) = '1310' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1310' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '25 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1310' 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '11 Jun 2007' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1310' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1310' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1310' 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)) = '1843' AND DB_OSP_ABSENCE.Start_Date = '21 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1843' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '03 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '24 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '19 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1379' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1379' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1379' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '1488' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '1488' 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] = '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)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' 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)) = '1488' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2012' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1488' 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)) = '1488' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2625' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2625' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '2625' 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] = '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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '09 May 2018' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0313' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2016' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '0313' 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)) = '0313' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0313' 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)) = '0313' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '18 Jan 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)) = '0313' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '0313' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '16 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '0313' 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)) = '0313' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0313' AND DB_OSP_ABSENCE.Start_Date = '03 May 2007' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '0313' 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)) = '2522  ' 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)) = '2522  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2522  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2522  ' 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)) = '2522  ' AND DB_OSP_ABSENCE.Start_Date = '22 May 2024' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1915' 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1915' 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] = '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)) = '1915' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '23 May 2022' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1915' 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] = '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)) = '1915' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1915' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2019' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1915' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '04 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1915' 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] = '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)) = '1915' 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '18 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '24 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '29 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2025' AND DB_OSP_ABSENCE.End_Date = '12 Aug 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)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2025' AND DB_OSP_ABSENCE.End_Date = '08 Aug 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)) = '1915' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1915' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '2332  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '05 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] = '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)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '2332  ' 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)) = '2332  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' 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)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 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)) = '2332  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '07 Nov 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)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '2332  ' 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)) = '2332  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2022' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '2332  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2332  ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2437  ' AND DB_OSP_ABSENCE.Start_Date = '27 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '2437  ' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '2437  ' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '2437  ' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '24 Oct 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)) = '2437  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2437  ' AND DB_OSP_ABSENCE.Start_Date = '27 May 2025' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2437  ' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2274  ' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2274  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2623  ' AND DB_OSP_ABSENCE.Start_Date = '25 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '2481  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2481  ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2481  ' 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] = '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)) = '2481  ' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '2481  ' 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)) = '2481  ' 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)) = '2481  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '2233  ' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2233  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2233  ' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '2233  ' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '2233  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' 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)) = '1532' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '27 Aug 2013' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' 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)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 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)) = '1532' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '24 May 2011' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '17 May 2011' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '09 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1532' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2146  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2146  ' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2024' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2146  ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2146  ' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '01 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2489' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '2489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '2489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2019' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '2489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '21 Jan 2019' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '2489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' 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)) = '2489' 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)) = '2489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '07 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '2489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '18 May 2016' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' 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)) = '2489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2489' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2489' 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] = '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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2024' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '18 Oct 2021' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1489' 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] = '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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '14 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '02 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '12 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '29 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] = '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)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '23 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '17 Dec 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '21 May 2008' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1489' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1489' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '2410  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2410  ' 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)) = '2410  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2410  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2410  ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2410  ' 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)) = '2410  ' 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] = '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)) = '2410  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2410  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '2410  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2220  ' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '2220  ' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2020' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '2220  ' AND DB_OSP_ABSENCE.Start_Date = '12 May 2020' AND DB_OSP_ABSENCE.End_Date = '14 May 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '15 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] = '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)) = '1396' 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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)) = '1396' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1396' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2020' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '1396' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = '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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '16 Jul 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '04 Dec 2017' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1396' 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = '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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 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)) = '1396' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '17 Sep 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '17 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '1396' 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)) = '1396' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '01 Feb 2011' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' 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] = '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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1396' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '19 Jun 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)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '1396' 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] = '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)) = '1396' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '1396' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1396' AND DB_OSP_ABSENCE.Start_Date = '12 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1145' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '1145' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1145' 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)) = '1145' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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] = '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)) = '1145' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '03 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '11 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '11 May 2012' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1145' 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)) = '1145' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '02 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '02 Nov 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '26 May 2009' AND DB_OSP_ABSENCE.End_Date = '01 Jun 2009' 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)) = '1145' 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] = '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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '27 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '15 May 2009' 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)) = '1145' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1145' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1486' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' AND DB_OSP_ABSENCE.Start_Date = '27 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] = '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)) = '1830' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1830' AND DB_OSP_ABSENCE.Start_Date = '08 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1830' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1830' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1830' 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)) = '1830' 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] = '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)) = '1442' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '04 Jan 2011' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '24 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1176' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1176' 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)) = '1176' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1176' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1176' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1176' 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)) = '1176' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0027' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0027' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '02 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2291  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2024' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '30 Sep 2023' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '2291  ' 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)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2025' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '2291  ' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '2320' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1806' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1806' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1806' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1806' 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)) = '1806' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1884' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1884' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1884' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '2057' 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)) = '2079  ' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = '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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '01 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2014' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '1413' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1413' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1413' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = '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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1413' 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] = '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)) = '1413' 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '23 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1413' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1413' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2010' AND DB_OSP_ABSENCE.End_Date = '24 Dec 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '02 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2010' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1413' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '24 Nov 2009' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1413' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '30 Jun 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '19 Jun 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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '1413' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '18 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1413' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = '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)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1413' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' AND DB_OSP_ABSENCE.Start_Date = '13 Aug 2007' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1413' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1413' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' AND DB_OSP_ABSENCE.Start_Date = '15 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1607' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' 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] = '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)) = '1607' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1607' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2012' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '2530  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2530  ' AND DB_OSP_ABSENCE.Start_Date = '11 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '2530  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '2272  ' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2272  ' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2272  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2272  ' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1637' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1637' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1637' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1637' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1637' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2176  ' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '27 Feb 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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '2257  ' 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] = '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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '30 May 2023' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '2257  ' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '29 May 2020' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2018' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1755' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '22 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1755' 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] = '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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1755' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2019' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '26 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '09 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '28 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2017' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2016' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '0404' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '19 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '25 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0404' 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '27 Jan 2014' AND DB_OSP_ABSENCE.End_Date = '27 Jan 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '0404' 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] = '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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '12 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] = '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)) = '0404' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '12 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '28 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)) = '0404' 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)) = '0404' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '01 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0404' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2010' AND DB_OSP_ABSENCE.End_Date = '16 Apr 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '15 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '26 May 2009' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '08 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '09 Dec 2008' 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)) = '0404' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '13 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0404' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '0404' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '27 Jan 2006' 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)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '29 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] = '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)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = '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)) = '2349  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2349  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2349  ' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2349  ' 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)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2023' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1867' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' 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)) = '1867' 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)) = '1867' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1867' 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)) = '1867' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2017' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1867' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1867' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1539' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1539' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1539' 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] = '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)) = '1539' AND DB_OSP_ABSENCE.Start_Date = '30 Jan 2017' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1539' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1539' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '21 Dec 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)) = '1539' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1539' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1805' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '14 May 2024' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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)) = '1805' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '1805' 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] = '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)) = '1805' 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1805' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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] = '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)) = '1805' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '23 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1805' 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] = '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)) = '1805' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '01 Jun 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '12 Feb 2018' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2017' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '11 Oct 2016' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '1805' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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] = '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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1805' 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '29 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1805' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '0843' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = '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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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)) = '1241' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '06 Jan 2015' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '04 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '05 Jun 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1241' 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] = '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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '22 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1241' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '03 Aug 2011' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '08 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '08 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '27 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '14 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '03 Jul 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '05 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2008' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '25 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1241' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '20 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1241' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '17 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1241' 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] = '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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '12 Sep 2007' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '13 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '09 May 2007' AND DB_OSP_ABSENCE.End_Date = '11 May 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '05 Feb 2007' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1241' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1241' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2006' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '29 May 2006' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '02 May 2006' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '1241' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '26 May 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '12 May 2014' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1517' 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] = '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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '27 Sep 2012' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1517' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '22 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1517' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' 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)) = '1517' 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '11 Aug 2010' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1517' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1517' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2023' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '09 May 2023' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2023' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2022' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '1380' 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '25 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1380' 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)) = '1380' 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] = '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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '17 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1380' 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)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = '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)) = '1380' 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] = '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)) = '1380' 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)) = '1380' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1380' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1380' 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '16 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] = '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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '04 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1380' 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] = '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)) = '1380' 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)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '26 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '07 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '05 May 2010' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '02 Feb 2010' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1380' 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] = '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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '20 Apr 2009' AND DB_OSP_ABSENCE.End_Date = '22 Apr 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1380' 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2007' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1380' 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)) = '1380' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '25 Jan 2007' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1380' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2006' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '01 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)) = '1380' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '2333  ' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2333  ' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '2333  ' 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)) = '2333  ' 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)) = '2333  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1698' AND DB_OSP_ABSENCE.Start_Date = '08 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] = '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)) = '1731' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1731' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2015' AND DB_OSP_ABSENCE.End_Date = '06 Mar 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)) = '1731' 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)) = '1731' 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] = '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)) = '1731' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1731' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1731' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1731' AND DB_OSP_ABSENCE.Start_Date = '21 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1731' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1731' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1731' AND DB_OSP_ABSENCE.Start_Date = '01 May 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)) = '2050' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2050' AND DB_OSP_ABSENCE.Start_Date = '19 Nov 2018' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '2310  ' 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] = '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)) = '2310  ' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '2310  ' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '2310  ' AND DB_OSP_ABSENCE.Start_Date = '18 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2578  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2578  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '06 Nov 2019' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1427' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '27 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '17 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '03 Oct 2019' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '23 Sep 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '13 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] = '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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '07 Feb 2017' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1427' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '10 Apr 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '07 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2013' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '19 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1427' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '06 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2011' AND DB_OSP_ABSENCE.End_Date = '08 Oct 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '25 Jul 2011' AND DB_OSP_ABSENCE.End_Date = '26 Jul 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)) = '1427' 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '29 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1427' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '29 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)) = '1427' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '08 Jul 2009' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '29 Jun 2009' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1427' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1427' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '30 Jul 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '30 May 2008' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '07 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1427' AND DB_OSP_ABSENCE.Start_Date = '29 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1427' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1672' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1672' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1672' AND DB_OSP_ABSENCE.Start_Date = '04 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)) = '1672' AND DB_OSP_ABSENCE.Start_Date = '20 Jul 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)) = '1672' 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] = '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)) = '1672' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1672' 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] = '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)) = '1672' 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] = '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)) = '1672' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '2340  ' 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)) = '2340  ' 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)) = '2340  ' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '2340  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2340  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '17 Sep 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)) = '2340  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2025' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1728' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '04 Sep 2020' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '30 May 2020' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '22 May 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '17 Jun 2019' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '25 May 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '13 May 2019' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '02 May 2018' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1728' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1728' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1728' 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] = '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)) = '1728' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1888' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1888' 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)) = '1888' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1888' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1888' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1888' 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)) = '1888' AND DB_OSP_ABSENCE.Start_Date = '13 Nov 2017' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '16 Nov 2020' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1792' 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '09 Jul 2020' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '22 May 2020' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1792' 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)) = '1792' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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)) = '1792' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = '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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1792' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2018' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1792' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1792' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '23 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '1792' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' 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)) = '1791' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '26 May 2020' AND DB_OSP_ABSENCE.End_Date = '28 May 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '12 Aug 2019' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1791' 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] = '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)) = '1791' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2018' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' 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] = '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)) = '1791' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' 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] = '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)) = '1791' 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1791' 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '11 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] = '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)) = '1791' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2016' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '04 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] = '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)) = '1791' 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] = '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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '12 Jun 2015' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '1791' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2015' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '07 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] = '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)) = '0729' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2014' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '0729' 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)) = '0729' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '0729' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '21 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '05 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '19 Apr 2007' AND DB_OSP_ABSENCE.End_Date = '19 Apr 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)) = '0729' 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] = '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)) = '0729' 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] = '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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '24 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '26 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)) = '0729' AND DB_OSP_ABSENCE.Start_Date = '21 Apr 2006' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '16 Apr 2018' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '04 Jul 2017' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '19 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '06 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' 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)) = '1847' 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)) = '1847' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '01 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1847' AND DB_OSP_ABSENCE.Start_Date = '16 Mar 2016' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '2562  ' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '2562  ' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '2562  ' AND DB_OSP_ABSENCE.Start_Date = '30 Oct 2024' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 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)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '2139  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = '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)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '18 Apr 2023' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '2139  ' 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)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '2139  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '08 Jun 2021' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '2139  ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2139  ' 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] = '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)) = '2139  ' AND DB_OSP_ABSENCE.Start_Date = '04 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '00001 ' 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)) = '00001 ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '11 May 2018' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '00001 ' 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] = '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)) = '00001 ' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '00001 ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2009' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '00001 ' 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)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '00001 ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '15 Nov 2006' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '00001 ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '23 Jan 2006' AND DB_OSP_ABSENCE.End_Date = '23 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)) = '00001 ' AND DB_OSP_ABSENCE.Start_Date = '22 Apr 2025' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '2398  ' 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)) = '2398  ' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' AND DB_OSP_ABSENCE.Start_Date = '01 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2398  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2398  ' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '2398  ' AND DB_OSP_ABSENCE.Start_Date = '10 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] = '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)) = '1720' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1720' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1720' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1720' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1720' AND DB_OSP_ABSENCE.Start_Date = '15 Sep 2014' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '1720' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '18 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '19 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '10 Dec 2021' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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)) = '1332' 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '24 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] = '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)) = '1332' 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '15 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = '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)) = '1332' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = '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)) = '1332' 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '08 Apr 2015' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '06 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '06 Oct 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '22 May 2014' AND DB_OSP_ABSENCE.End_Date = '22 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)) = '1332' 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '22 Jul 2013' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2012' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '06 Apr 2011' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '30 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '02 Sep 2010' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '23 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '24 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)) = '1332' 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '31 Oct 2007' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '06 Jul 2006' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '1332' 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '22 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1332' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '2293  ' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '12 Jul 2024' AND DB_OSP_ABSENCE.End_Date = '12 Jul 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)) = '1236' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1236' 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '06 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)) = '1236' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '15 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)) = '1236' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '02 Jun 2017' AND DB_OSP_ABSENCE.End_Date = '02 Jun 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '10 Jan 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)) = '1236' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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] = '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)) = '1236' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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] = '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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '16 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)) = '1236' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '18 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '14 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] = '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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1236' 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] = '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)) = '1236' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1236' 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)) = '1236' 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '17 Feb 2025' AND DB_OSP_ABSENCE.End_Date = '12 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)) = '1236' AND DB_OSP_ABSENCE.Start_Date = '14 Jan 2025' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '1133' 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)) = '1133' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2020' AND DB_OSP_ABSENCE.End_Date = '02 Dec 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '25 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)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '12 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2016' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '02 Dec 2015' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '1133' 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '16 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '16 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)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '14 Sep 2009' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '07 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)) = '1133' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1133' AND DB_OSP_ABSENCE.Start_Date = '18 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1727' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1727' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1727' AND DB_OSP_ABSENCE.Start_Date = '16 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1727' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '1727' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1727' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1727' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1727' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1727' 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '11 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '05 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)) = '1464' 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] = '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)) = '1464' 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)) = '1464' 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)) = '1464' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2021' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '08 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '03 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '02 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)) = '1464' 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '07 Jul 2014' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '30 Apr 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)) = '1464' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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)) = '1464' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '09 Oct 2012' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '1464' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '23 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '03 Nov 2010' AND DB_OSP_ABSENCE.End_Date = '04 Nov 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '20 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)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '05 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1464' 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)) = '1464' 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)) = '1464' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1464' AND DB_OSP_ABSENCE.Start_Date = '05 Aug 2008' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '1464' 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)) = '0940' 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] = '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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '21 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0940' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '17 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '01 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] = '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)) = '0940' 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] = '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)) = '0940' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '0940' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '09 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0940' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '26 Jun 2013' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '0940' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '28 Mar 2011' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '09 Mar 2010' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '30 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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '26 Jan 2009' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '0940' 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] = '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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '15 Oct 2008' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '0940' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '11 Feb 2008' AND DB_OSP_ABSENCE.End_Date = '11 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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '27 Dec 2007' AND DB_OSP_ABSENCE.End_Date = '28 Dec 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)) = '0940' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '24 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '17 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] = '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)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0940' AND DB_OSP_ABSENCE.Start_Date = '16 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '1603' 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)) = '1603' AND DB_OSP_ABSENCE.Start_Date = '02 Apr 2012' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2543  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2543  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' 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)) = '0308' 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '07 Nov 2022' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '0308' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '12 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' 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)) = '0308' 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '11 Dec 2014' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '0308' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '28 Oct 2014' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '0308' 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '30 Nov 2011' 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '09 May 2011' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '0308' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '26 Oct 2009' AND DB_OSP_ABSENCE.End_Date = '27 Oct 2009' 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)) = '0308' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '03 Jun 2008' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '05 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '21 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '04 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '24 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '0308' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2014' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '20 May 2014' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '19 Feb 2014' AND DB_OSP_ABSENCE.End_Date = '19 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '04 Nov 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '11 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] = '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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '30 May 2013' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '0913' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '29 Jan 2013' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2012' AND DB_OSP_ABSENCE.End_Date = '15 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '07 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '17 Nov 2011' AND DB_OSP_ABSENCE.End_Date = '06 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)) = '0913' 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)) = '0913' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '23 Jun 2010' AND DB_OSP_ABSENCE.End_Date = '23 Jun 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '02 Jan 2010' AND DB_OSP_ABSENCE.End_Date = '05 Jan 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '21 Dec 2009' AND DB_OSP_ABSENCE.End_Date = '23 Dec 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)) = '0913' 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)) = '0913' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '05 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '22 Dec 2008' AND DB_OSP_ABSENCE.End_Date = '24 Dec 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '08 Sep 2008' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0913' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '08 Jan 2008' AND DB_OSP_ABSENCE.End_Date = '08 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '19 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '25 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)) = '0913' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '06 Mar 2007' AND DB_OSP_ABSENCE.End_Date = '09 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)) = '0913' 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] = '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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '15 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '14 Aug 2006' AND DB_OSP_ABSENCE.End_Date = '14 Aug 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '13 Feb 2006' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '0913' AND DB_OSP_ABSENCE.Start_Date = '10 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)) = '1822' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1822' AND DB_OSP_ABSENCE.Start_Date = '10 Aug 2015' AND DB_OSP_ABSENCE.End_Date = '10 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)) = '0767' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0767' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0767' 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] = '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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '31 Jan 2018' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '22 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] = '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)) = '0767' 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] = '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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '25 Aug 2016' AND DB_OSP_ABSENCE.End_Date = '06 Sep 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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '10 May 2010' AND DB_OSP_ABSENCE.End_Date = '10 May 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)) = '0767' AND DB_OSP_ABSENCE.Start_Date = '13 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '14 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)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '28 Sep 2017' AND DB_OSP_ABSENCE.End_Date = '28 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)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '23 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '30 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '18 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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)) = '1166' 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] = '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)) = '1166' 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)) = '1166' 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] = '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)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '11 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1166' AND DB_OSP_ABSENCE.Start_Date = '01 Dec 2006' AND DB_OSP_ABSENCE.End_Date = '01 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)) = '1166' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '18 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)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '0980' 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] = '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)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '26 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)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '26 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '03 Jan 2012' AND DB_OSP_ABSENCE.End_Date = '04 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)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '14 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)) = '0980' AND DB_OSP_ABSENCE.Start_Date = '28 Jul 2008' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '0980' 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)) = '1820' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '24 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)) = '0397' 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] = '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)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2011' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 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)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '22 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0397' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '11 Mar 2008' AND DB_OSP_ABSENCE.End_Date = '12 Mar 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)) = '0397' AND DB_OSP_ABSENCE.Start_Date = '02 Jul 2007' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '0397' 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '10 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '27 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '01 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '27 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '20 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '31 Aug 2021' AND DB_OSP_ABSENCE.End_Date = '02 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)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '03 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '05 Jul 2021' AND DB_OSP_ABSENCE.End_Date = '05 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)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '13 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '10 Feb 2021' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '03 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] = '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)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '19 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '17 Aug 2020' AND DB_OSP_ABSENCE.End_Date = '17 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '24 Mar 2020' AND DB_OSP_ABSENCE.End_Date = '09 Apr 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '11 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] = '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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '28 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '03 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)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '27 Feb 2020' AND DB_OSP_ABSENCE.End_Date = '27 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)) = '2010' 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] = '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)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '31 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '29 Jul 2019' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '2010' 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' 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)) = '2010' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2010' AND DB_OSP_ABSENCE.Start_Date = '17 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)) = '2010' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '14 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '31 May 2013' AND DB_OSP_ABSENCE.End_Date = '13 Jun 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)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '25 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '15 Apr 2013' AND DB_OSP_ABSENCE.End_Date = '24 May 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)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '04 Mar 2013' AND DB_OSP_ABSENCE.End_Date = '17 Mar 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)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '01 Mar 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)) = '1662' AND DB_OSP_ABSENCE.Start_Date = '28 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1662' 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)) = '1662' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1662' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1662' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' AND DB_OSP_ABSENCE.Start_Date = '13 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)) = '2478  ' 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] = '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)) = '2478  ' AND DB_OSP_ABSENCE.Start_Date = '08 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)) = '2478  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' 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] = 'Mental Health', [Reason_For_Absence_Code] = 'MH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' 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)) = '2478  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' AND DB_OSP_ABSENCE.Start_Date = '20 Oct 2025' AND DB_OSP_ABSENCE.End_Date = '20 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)) = '2478  ' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '2478  ' AND DB_OSP_ABSENCE.Start_Date = '18 Jun 2025' AND DB_OSP_ABSENCE.End_Date = '18 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)) = '2478  ' AND DB_OSP_ABSENCE.Start_Date = '31 Mar 2025' AND DB_OSP_ABSENCE.End_Date = '31 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)) = '2478  ' 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)) = '1750' 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '29 Nov 2024' AND DB_OSP_ABSENCE.End_Date = '29 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)) = '1750' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '16 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '09 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '29 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '20 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] = '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)) = '1750' 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] = '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)) = '1750' 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)) = '1750' 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '28 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] = '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)) = '1750' 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] = '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)) = '1750' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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)) = '1750' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '18 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] = '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)) = '1750' 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] = 'Musculoskeletal', [Reason_For_Absence_Code] = 'MUSC' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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)) = '1750' 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] = 'Cold, Covid or Flu symptoms', [Reason_For_Absence_Code] = 'C,C&F' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '02 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] = 'Headache and/or Migraine', [Reason_For_Absence_Code] = 'HEAD' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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] = 'Other', [Reason_For_Absence_Code] = 'OTH' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '29 Aug 2018' AND DB_OSP_ABSENCE.End_Date = '30 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '26 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] = '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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '20 Mar 2018' AND DB_OSP_ABSENCE.End_Date = '21 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '09 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)) = '1750' 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] = '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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '12 Dec 2016' AND DB_OSP_ABSENCE.End_Date = '13 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '19 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] = '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)) = '1750' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '07 Sep 2015' AND DB_OSP_ABSENCE.End_Date = '07 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)) = '1750' 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] = 'Gastrointestinal', [Reason_For_Absence_Code] = 'SICK' 
WHERE Ndx = (SELECT TOP 1 lk.Ndx FROM DB_OSP_ABSENCE lk INNER JOIN LNK_EMPLOYEE_CONTRACT lec ON lec.Right_Join = lk.Master_id INNER JOIN DT_EMPLOYEE e ON e.Entity_Id = LEC.Left_Join AND CAST(EmployeeID as varchar(20)) = '1750' 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)) = '1750' 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)) = '1750' 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '30 Jun 2014' AND DB_OSP_ABSENCE.End_Date = '30 Jun 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)) = '1750' AND DB_OSP_ABSENCE.Start_Date = '14 Apr 2014' AND DB_OSP_ABSENCE.End_Date = '17 Apr 2014' AND DB_OSP_ABSENCE.Reason = 'Sick')