Try thisupdate wrset M1 = case when month(Duedate)=1 then 'X' else M1 end, M2 = case when month(Duedate)=2 then 'X' else M2 end, M3 = case when month(Duedate)=3 then 'X' else M3 end, M4 = case when month(Duedate)=4 then 'X' else M4 end, M5 = case when month(Duedate)=5 then 'X' else M5 end, M6 = case when month(Duedate)=6 then 'X' else M6 end, M7 = case when month(Duedate)=7 then 'X' else M7 end, M8 = case when month(Duedate)=8 then 'X' else M8 end, M9 = case when month(Duedate)=9 then 'X' else M9 end, M10 = case when month(Duedate)=10 then 'X' else M10 end, M11 = case when month(Duedate)=11 then 'X' else M11 end, M12 = case when month(Duedate)=12 then 'X' else M12 endfrom workreport wr join machine m on m.machineid = wr.machineid and m.Taskid = wr.taskid and year(m.Duedate) = wr.year
No, you're never too old to Yak'n'Roll if you're too young to die.