I have a SAS dataset that I am converting to sql server 2005. In the sas dataset there are numeric variables that allow for multiple missing values.
For example column AGE is specified as
0-124 = number
. = missing
.A = Invalid
.B = Unavailable
Now I want to use a number for the sql server datatype and need to maintain the integrity of the data. My first thought is to create a reference table for the actual value from sas:
-1 = .A = Invalid
-2 = .B = Unavailable
This seems messy since age would require entry for each age 1-124. Curious if anyone else has run across this and has a better solution.