Viewing 2 posts - 1 through 2 (of 2 total)
This also works, and as pointed out, is a little simpler:
DATEDIFF(dd, rec_dte, ISNULL(det_dte, GETDATE()))
Thanks again! 🙂
December 14, 2015 at 6:12 pm
#1845970
Bingo!
I used:
DateDiff(dd, rec_Dte, case when det_dte is null then GetDate() else det_dte end)
Results are returned as expected with no error.
Thank you very much!
December 14, 2015 at 6:09 pm
#1845968