Repeat the operation for each column that is part of the update key.

Working with Integration Interfaces 11-11 ■ From the Interfaces tab, select an interface whose target will be used as the lookup table. If this target is temporary and you want this interface to generate a sub-select corresponding to the loading of the temporary datastore, check the Use Temporary Interface as Derived Table Sub-Select box. If this box is not checked, make sure to run the interface loading the temporary datastore before running the current interface.

4. Modify the Alias of the lookup table. The alias is used to prefix column names.

This is an optional step that improves readability of the expressions.

5. Click Next.

6. On the left pane, select one or several source columns from the driving table you wish to join. 7. On the right pane, select one or several columns of the lookup table you wish to join.

8. Click Join. The join condition appears in the Lookup condition text field. You can

edit the join condition in this field. 9. Specify the Lookup options: ■ Execute on : Execution location Source or Staging Area of the lookup. ■ Lookup type : Indicates whether to use SQL left-outer join in the FROM clause or SQL expression in the SELECT clause during the SQL code generation.

10. Click Finish. Your lookup appears in the Source Diagram of your dataset.

To edit Lookup tables: 1. Select a Lookup in the Source Diagram of your dataset. The Lookup table properties are displayed in the Property Inspector. 2. Edit the lookup properties in the Property Inspector. You cannot change from here the driving and lookup tables. To change these, you must delete the lookup and recreate it. To delete a Lookup table: 1. Select a Lookup in the Source Diagram of your dataset.

2. Right-click and select Delete.

11.3.4.3 Define Filters on the Sources

To define a filter on a source datastore:

1. In the Source Diagram, select one or several columns in the source datastore you

want to filter, and then drag and drop these columns onto the source diagram. A filter appears. Click this filter to open the Property Inspector.

2. In the Diagram Property tab of the Property Inspector, modify the

Implementation expression to create the required filter. You may call the expression Editor by clicking Launch Expression Editor button. The filter expression must be in the form SQL condition. For example, if you want to take in the CUSTOMER table that is the source datastore with the CUSTOMER alias Note: In order to use columns from this lookup, you need to expand the graphical artifact representing it. Right-click the lookup icon in the diagram and select View As Symbolic. 11-12 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator only those of the customers with a NAME that is not null, an expression would be CUSTOMER.NAME IS NOT NULL.

3. Select the execution location: Source or Staging Area.

4. Click the Check the Expression in the DBMS to validate the expression.

5. Check the Active Filter box to enable or disable this filter. It is enabled by default.

6. If you want ODI to automatically generate a temporary index to optimize the execution of the filter, select the index type to create from the Create Temporary Index list. This step is optional. To delete a filter on a source datastore: 1. In the Source Diagram, select the filter.

2. Right-click and select Delete.

To display the data or the number of rows resulting from a filter: 1. In the Source Diagram, select the filter.

2. Right-click and select Number of Lines to display the number of rows after the

filter or Display Data to display the filtered data. A window containing the data or the number of rows after the filter appears.

11.3.4.4 Define Joins between Sources

To create a join between the source datastores of an interface:

1. In the Source Diagram, select a column in the first source datastore to join, and

drag and drop this column on a column in the second source datastore to join. A join linking the two datastores appears. Click this join to open the Property Inspector.

2. In the Diagram Property tab of the Property Inspector, modify the

Implementation expression to create the required join. You may call the expression Editor by clicking Launch Expression Editor button. The join expression must be in the form of an SQL expression.

3. Select the execution location: Source or Staging Area.

4. Optionally, you can click the Check the Expression in the DBMS to validate the

expression.

5. Select the type of join rightleft, innerouter, cross, natural. The text describing

which rows are retrieved by the join is updated.

6. If you want to use an ordered join syntax for this join, check the Ordered Join

ISO box and then specify the Order Number into which this join is generated. This step is optional.

7. Check the Active Clause box to enable or disable this join. You can disable a join

for debugging purposes. It is enabled by default. Note: The creation of temporary indexes may be a time consuming operation in the overall flow. It is advised to review the execution statistics and to compare the execution time saved with the indexes to the time spent creating them.