Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Address Validator Transformation
  4. Aggregator Transformation
  5. Association Transformation
  6. Bad Record Exception Transformation
  7. Case Converter Transformation
  8. Classifier Transformation
  9. Cleanse transformation
  10. Comparison Transformation
  11. Custom Transformation
  12. Custom Transformation Functions
  13. Consolidation Transformation
  14. Data Masking Transformation
  15. Data Masking Examples
  16. Decision Transformation
  17. Duplicate Record Exception Transformation
  18. Dynamic Lookup Cache
  19. Expression Transformation
  20. External Procedure Transformation
  21. Filter Transformation
  22. HTTP Transformation
  23. Identity Resolution Transformation
  24. Java Transformation
  25. Java Transformation API Reference
  26. Java Expressions
  27. Java Transformation Example
  28. Joiner Transformation
  29. Key Generator Transformation
  30. Labeler Transformation
  31. Lookup Transformation
  32. Lookup Caches
  33. Match Transformation
  34. Match Transformations in Field Analysis
  35. Match Transformations in Identity Analysis
  36. Merge Transformation
  37. Normalizer Transformation
  38. Parser Transformation
  39. Rank Transformation
  40. Router Transformation
  41. Sequence Generator Transformation
  42. Sorter Transformation
  43. Source Qualifier Transformation
  44. SQL Transformation
  45. Using the SQL Transformation in a Mapping
  46. Stored Procedure Transformation
  47. Standardizer Transformation
  48. Transaction Control Transformation
  49. Union Transformation
  50. Unstructured Data Transformation
  51. Update Strategy Transformation
  52. Weighted Average Transformation
  53. 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!