1. Consider the following employees data as source
employee_id, salary
10, 1000
20, 2000
30, 3000
40, 5000
Q1. Design a mapping to load the cumulative sum of salaries of employees into target table?
The target table data should look like as
employee_id, salary, cumulative_sum
10, 1000, 1000
20, 2000, 3000
30, 3000, 6000
40, 5000, 11000
Solution:
Connect the source Qualifier to expression transformation. In the
expression transformation, create a variable port V_cum_sal and in the
expression editor write V_cum_sal+salary. Create an output port
O_cum_sal and assign V_cum_sal to it.
Q2. Design a mapping to get the...
