I want to copy values from a bit column called "absent" in table Person to a new, empty datetime column I just made.
The bit type column contains rows with values null, 0 and 1.
Now, I'd like to copy the values of this bit column to the new datetime column so, that all null AND 0 values in the bit column would be null values in the datetime column. All the 1 values would be new, current dates.
How to do that? I tried to search for w3bschools for some examples but couldn't find any.
Well, you can do it like this: