Handling Null value
Posted: Tue Aug 31, 2004 2:22 am
Hi,
We have a small issue in loading the fact table. We are getting null values in certain dimensions like vehicle and driver, but when Amruta checked the same with Shabber, he said, that is a valid record, and we need to take that row into account (need not through in to reject). Following are the two solutions we have in mind to proceed further:
If the required source column is null, transform the same as NA and populate the surrogate key OR
If the required source column is null, transform the same as NULL or 0 (we can have NULL or 0 as a value in dimension), and populate the fact with appropriate surrogate key.
We have a small issue in loading the fact table. We are getting null values in certain dimensions like vehicle and driver, but when Amruta checked the same with Shabber, he said, that is a valid record, and we need to take that row into account (need not through in to reject). Following are the two solutions we have in mind to proceed further:
If the required source column is null, transform the same as NA and populate the surrogate key OR
If the required source column is null, transform the same as NULL or 0 (we can have NULL or 0 as a value in dimension), and populate the fact with appropriate surrogate key.