do you mean this?Select dtmValidThru, datediff(mm, getdate(), dtmValidThru) <13 then datediff(mm, getdate(), dtmValidThru) else null end as col1,datediff(mm, getdate(), dtmValidThru) > 12 and datediff(mm, getdate(), dtmValidThru) < 25 then datediff(mm, getdate(), dtmValidThru) else null end as col2,datediff(mm, getdate(), dtmValidThru) >25 and datediff(mm, getdate(), dtmValidThru) <37 then datediff(mm, getdate(), dtmValidThru) else null end as col3,...From RES_Entity.dbo.tblEntityNameWhere dtmValidThru < getdate()