I have a SQL logic like below
Case When (col1 is null and col1 is null )or (col3 is null) Then 0 Else Case When Dt - (Case When dt1 is null Then Case when col1 is n