SELECT WorkerNo, DutyTime, DATENAME(weekday, DutyTime) AS WeekDay, CycleType, CycleNumber, YnOnDuty, ) ) ) )), ) )), ) END AS OneOnduty, ) ) ) )), ) )), ) END AS OneOffduty, Creationtime, CreationName, EditTime, EditName, StartUsingDate, Description,…