select case when datediff(d,StartDt,EndDt) = 0 then '0 days'
when datediff(d,StartDt,EndDt) = 1 then '0 day'
when datediff(d,StartDt,EndDt) = 2 then '2 days'
...
...
when datediff(d,StartDt,EndDt) between 8 and 14 then '8-14 days'
when datediff(d,StartDt,EndDt) between 15 and 25 then '15-25 days' end as Diff
from Yourtable
|