Dealing with Null columns
Posted: Mon Dec 13, 2004 1:35 pm
Hello there,
I have the following columns in a table: 'Name', 'ssn, 'age'.
The values for these columns are:
SUN 6666 24
5555 26
Raj 7777 25
8888 23
The first column contains Null values. I am trying to separate this into two files based on the column 'Name'. I am using IsNull(Name) then 'file1' else 'file2' condition. This is working fine when the value in the 'Name' column is 'null'. But when there are some spaces in the 'Name' column instead of Null this condition is not working.
Can anyone explain to me what the problem is.
Thanx in advance.
-Yamini
I have the following columns in a table: 'Name', 'ssn, 'age'.
The values for these columns are:
SUN 6666 24
5555 26
Raj 7777 25
8888 23
The first column contains Null values. I am trying to separate this into two files based on the column 'Name'. I am using IsNull(Name) then 'file1' else 'file2' condition. This is working fine when the value in the 'Name' column is 'null'. But when there are some spaces in the 'Name' column instead of Null this condition is not working.
Can anyone explain to me what the problem is.
Thanx in advance.
-Yamini