I have been trying to create a test database in DB2 V7 environment. In one table, am finding this error "The field value in a row X and column Y is missing, but the target column is not nullable." where row X and column Y correspond to a data value that is an empty space. I tried recreating the table with the NOT NULL clause in column Y removed and it loaded all rows. My problem is that the rows with no values for column Y should be recognized as spaces and not nulls, in that when I run
select count(*) in tableZ where columnY =''
I should get the number of all records with no values for column Y.
There should be no nulls in any character field in my data model so that when I run the same query as below:
select count(*) in tableZ where columnY is null
I sholud get 0.
How can I achieve this so that I load my database appropriately?
Thanks,
Franka