Time for action – keeping a history of changes in products by using the Dimension lookup/update step
Let's load a puzzles dimension along with the history of the changes in puzzles attributes:
- Create a new transformation.
- Drag a Table input step to the work area and double-click on it.
- As Connection, select
js
. - In the SQL area type the following query:
SELECT pro_code , man_code , pro_name , pro_theme FROM products WHERE pro_type LIKE 'PUZZLE'
- Click on OK.
- Add an Add constants step, and create a hop from the Table input step toward it.
- Use the step to add a Date field named
changedate
. As format, typedd/MM/yyyy
and as value, type01/10/2009
. - Expand the Data Warehouse category of steps.
- Select the Dimension lookup/update step and drag it to the canvas.
- Create a hop from the Add constants step to this new step.
- Double-click on the Dimension lookup/update step.
- As Connection, select
dw
. - As Target table, type
lk_puzzles
. - Fill the Key fields, as shown in the following...