I have an issue need some insight..
i have a job with one of the source column as NOT NULL and its been targeted to a column that is also NOT NULL..the data coming in on that column shows blank, null spaces, I want to default those blank spaces to UNKNOWN. but when I use the NullToValue function, I still get the same plain blank space at the target column. how can I handle it. someone please give some insight.
both the columns are defines as Varchar(25) and the data coming in are numeric like '2', '7', etc..
thanks
NullToValue
Moderators: chulett, rschirm, roy
Blanks or spaces are not equivalent to the NULL value, which represents that the value is UNKNOWN.
In your case, you won't have actual NULL values coming in. You can do a test on spaces or a test on the empty string '' (two single quotes) after trimming the VarChar(25) column, and then output the string 'UNKNOWN' or else output the original input column value.
In your case, you won't have actual NULL values coming in. You can do a test on spaces or a test on the empty string '' (two single quotes) after trimming the VarChar(25) column, and then output the string 'UNKNOWN' or else output the original input column value.
Choose a job you love, and you will never have to work a day in your life. - Confucius