I have two DateTime columns Date1
and Date2
. If Date1
is populated, Date2
carries the same value, otherwise Date2
carries its own unique value.
What I am trying to do is, if Date1<>NULL
, Date2=NULL
.
I am using a CASE
statement within a SELECT
Statement that fetches other values as well. But its not solving my issue.
CASE
WHEN (DATE1<>NULL AND DATE2<>NULL)
THEN DATE2=NULL
ELSE DATE2
END
Help appreciated! Thanks