I am facing the below scenario.
I am having a source table ABC having columns col1,col2 and col3. I am having a lookup table 'ABC_Lookup' having columns col1 ,col2,col1_key and col2_key.
I am performing a lookup for ABC table on 'ABC_Lookup' table on the columns col1 and col2 to retreive the col1_key and col2_key respectively.
Suppose if I have nulls coming in col1 in ABC table and if a lookup is performed on col in 'ABC_Lookup' table, the output is 0 as col1 is defined as number.
however, in this case, the value for col2_key is also loaded as 0.it should ideally be populated with col2_key as the lookup is being performed on col2 in source and lookup tables.
can you please explain why is this happening and the solution for this.
Thank you very much.
Lookup problem
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 41
- Joined: Sat Jun 06, 2009 11:13 pm
- Location: Kolkata
-
- Participant
- Posts: 50
- Joined: Mon Jan 21, 2008 9:35 am
-
- Participant
- Posts: 50
- Joined: Mon Jan 21, 2008 9:35 am