I want to write a nested case statement where i want in Microsoft SQL Server that
case
when date 2 is null
then date 1
else date 2
end ---1st condition
and use this condition as:
case
when condition1 is <= getdate()
and condition1 < getdate() + 14
then 'DUE'
else 'after .
I am getting error message and not able to complete my case statement.