I have one more computed column I'm having trouble with.... rather then make a new post I thought I'd write it here first...I need to change a computed column that someone else wrote but can't seem to get it right.Original Code: (CONVERT([date],case when [StartDate] IS NULL then [StartTime] else [StartDate] end,(0)))
I now need the above to execute but ONLY when the column 'TOC' is equal to "CC" otherwise it should remain NULL (all columns are in same table).I tried adding on a case when to the beginning, then an else '', and finally an end but I once again can't seem to get the syntax right...(CASE WHEN [TOC]='CC' THEN (CONVERT([date],case when [StartDate] IS NULL then [StartTime] else [StartDate])) ELSE '' end end,(0)
Mike Brown