Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Custom Transformation
  5. Custom Transformation Functions
  6. Data Masking Transformation
  7. Data Masking Examples
  8. Expression Transformation
  9. External Procedure Transformation
  10. Filter Transformation
  11. HTTP Transformation
  12. Identity Resolution Transformation
  13. Java Transformation
  14. Java Transformation API Reference
  15. Java Expressions
  16. Java Transformation Example
  17. Joiner Transformation
  18. Lookup Transformation
  19. Lookup Caches
  20. Dynamic Lookup Cache
  21. Normalizer Transformation
  22. Rank Transformation
  23. Router Transformation
  24. Sequence Generator Transformation
  25. Sorter Transformation
  26. Source Qualifier Transformation
  27. SQL Transformation
  28. Using the SQL Transformation in a Mapping
  29. Stored Procedure Transformation
  30. Transaction Control Transformation
  31. Union Transformation
  32. Unstructured Data Transformation
  33. Update Strategy Transformation
  34. XML Transformations

Transformation Guide

Transformation Guide

Normal Join Syntax

Normal Join Syntax

You can create a normal join using the join condition in a source qualifier. However, if you are creating an outer join, you need to override the default join to perform an outer join. As a result, you need to include the normal join in the join override. When incorporating a normal join in the join override, list the normal join before outer joins. You can enter multiple normal joins in the join override.
To create a normal join, use the following syntax:
{
source1
INNER JOIN
source2
on
join_condition
}
The following table displays the syntax for Normal Joins in a Join Override:
Syntax
Description
source1
Source table name. The Integration Service returns rows from this table that match the join condition.
source2
Source table name. The Integration Service returns rows from this table that match the join condition.
join_condition
Condition for the join. Use syntax supported by the source database. You can combine multiple join conditions with the AND operator.
For example, you have a REG_CUSTOMER table with data for registered customers:
CUST_ID
FIRST_NAME
LAST_NAME
00001
Marvin
Chi
00002
Dinah
Jones
00003
John
Bowden
00004
J.
Marks
The PURCHASES table, refreshed monthly, contains the following data:
TRANSACTION_NO
CUST_ID
DATE
AMOUNT
06-2000-0001
00002
6/3/2000
55.79
06-2000-0002
00002
6/10/2000
104.45
06-2000-0003
00001
6/10/2000
255.56
06-2000-0004
00004
6/15/2000
534.95
06-2000-0005
00002
6/21/2000
98.65
06-2000-0006
NULL
6/23/2000
155.65
06-2000-0007
NULL
6/24/2000
325.45
To return rows displaying customer names for each transaction in the month of June, use the following syntax:
{ REG_CUSTOMER INNER JOIN PURCHASES on REG_CUSTOMER.CUST_ID = PURCHASES.CUST_ID }
The Integration Service returns the following data:
CUST_ID
DATE
AMOUNT
FIRST_NAME
LAST_NAME
00002
6/3/2000
55.79
Dinah
Jones
00002
6/10/2000
104.45
Dinah
Jones
00001
6/10/2000
255.56
Marvin
Chi
00004
6/15/2000
534.95
J.
Marks
00002
6/21/2000
98.65
Dinah
Jones
The Integration Service returns rows with matching customer IDs. It does not include customers who made no purchases in June. It also does not include purchases made by non-registered customers.

0 COMMENTS

We’d like to hear from you!