Use Boolean algebra in tsql to avoid CASE statement or deal complex WHERE conditions
问题 I came across a scenario,I will explain it with some dummy data. See the table Below Select * from LUEmployee empId name joiningDate 1049 Jithin 3/9/2009 1017 Surya 1/2/2008 1089 Bineesh 8/24/2009 1090 Bless 7/15/2009 1014 Dennis 1/5/2008 1086 Sus 9/10/2009 I need to increment the year column by 1, only If the months are Jan, Mar, July Or Dec. empId name joiningDate derived Year 1049 Jithin 3/9/2009 2010 1017 Surya 1/2/2008 2009 1089 Bineesh 8/24/2009 2009 1090 Bless 7/15/2009 2010 1014