I try to transform data from table 1 to table 2 via kettle. The situation is, in table 1 the data is display like this:
c1 c2
------- ----------
A 1
A null
A null
B 2
B null
B null
And I want the steps to group values in column 1 by A, B..., and replace the null values in column 2. So the output will be like:
c1 c2
------- ----------
A 1
A 1
A 1
B 2
B 2
B 2
I've tried to use the step called Database lookup to replace all the null values, but apparently it can't group values in column 1 first and then replace based on column 2.
I know with sql script can do this work, but can some steps in spoon do that as well? Any help/suggestion will be really appreciated.