Perform the following steps to create and populate the job:
-
-
Select and drag an SQL
Join transformation from the
SQL folder in the Transformations tree. Then, drop it in the empty job on the
Diagram tab
in the
Job Editor window.
-
Select and drag the
source tables out of the Inventory tree. Then, drop it before the SQL Join transformation
on the
Diagram tab.
Drag the cursor from the source tables to the input port of the SQL
Join transformation. This action connects the sources to the transformation.
-
Because you want to have a permanent target table to contain the output for the transformation,
right-click the temporary work
table that is attached to the SQL Join transformation and click
Replace in the pop-up
menu. Then, use the
Table Selector window to select the target table for the job. The target table must be registered
in SAS Data Integration Studio. (For more information
about temporary work tables, see
Working with Default Temporary Output Tables.)
Note: If you keep the worktable,
you must add the Table Loader transformation to the job in order to
connect the target table into the job flow. The Table Loader provides
additional load options and combinations of load options, but it is
not needed for many jobs. The extra processing that is required for
the Table Loader can degrade performance when the job is run. In addition,
you should not use a temporary output table and a Table Loader step
if you use pass-through processing when your target table is a DBMS
table and your DBMS engine supports the Create as Select
syntax.
The following display shows a sample SQL job.
Note: The source tables for the
sample job are UNITEDSTATES and USCITYCOORDS. The target table is
named CAPITAL_CITY_DATA. Now you can create the SQL query that populates
the target table.