Hi
I have below select statement . I want if ResubmitDate - SentBackdate is null then "" should be shown
(select DATEDIFF(d,Min([SentBackDate]),Max([ReSubmitDate])) from [PRQS].[dbo].[View_Capex_StepWiseApprovalDetail] where EntryCode=L.[PR] ),
Thanks

Jignesh KumarRank #91 · 22.9K reputationPosted Nov 16, 2022, 1:32 AM EST
use this one,
(select CASE WHEN ISNULL(DATEDIFF(day,Min([SentBackDate]),Max([ReSubmitDate])), 0) <= 0 THEN '' End as MyDate from [PRQS].[dbo].[View_Capex_StepWiseApprovalDetail] where EntryCode=L.[PR] ),