I am sure there is an easy way to do this but I cannot figure it out, I am trying to add a decimal value to a datediff statement & I still get the outcome as 0 as opposed to when I try to add a whole number such as 1 or 5, I get the desired outcome with 1 or 5 added. Here's my code: SelectStartDate, EndDate, CASE Type WHEN 'HALF' THEN DATEDIFF (d, StartDate, EndDate + 0.5) - (select DT from TableB)ELSEDateDiff (d,StartDate, EndDate + 1) END From Table A Where ID=@ID AND SOLO='Complete'
The scenario with the +1 work, but where I try to add + 0.5 with the HALF scenario only returns a 0. Any ideas?