Time for action – loading a region dimension with a Combination lookup/update step
In this tutorial, you will load a dimension that stores geographical information.
- Launch Spoon and create a new transformation.
- Drag a Table input step to the canvas and double-click on it.
- As Connection, select
js
. - In the SQL area, type the following query and click on the OK button:
SELECT ci.city_id, city_name, country_name FROM cities ci, countries co WHERE ci.cou_id = co.cou_id
- Expand the Data Warehouse category of steps.
- Select the Combination lookup/update step and drag it to the canvas.
- Create a hop from the Table input step to this new step.
- Double-click on the Combination lookup/update step.
- As Connection, select
dw
. - As Target table browse and select lk_regions or simply type it.
- Change the default Commit size to
1
. - Fill the grid, as shown in the following screenshot:
- As Technical key field type
id
, and as Date of last update field (optional) typelastupdate
. - Click on OK.
- After the Combination lookup/update...