Table of Contents

Search

  1. Preface
  2. Informatica Developer
  3. The Model Repository
  4. Searches in Informatica Developer
  5. Connections
  6. Physical Data Objects
  7. Flat File Data Objects
  8. Logical View of Data
  9. Viewing Data
  10. Application Deployment
  11. Application Patch Deployment
  12. Application Patch Deployment Example
  13. Continuous Integration and Continuous Delivery (CI/CD)
  14. Object Import and Export
  15. Appendix A: Data Type Reference
  16. Appendix B: Keyboard Shortcuts
  17. Appendix C: Connection Properties

Developer Tool Guide

Developer Tool Guide

Normal Join Syntax

Normal Join Syntax

You can create a normal join using the join condition in a customized data object or relational data object instance.
When you create an outer join, you must override the default join. As a result, you must include the normal join in the join override. When you include 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 resource name. The Data Integration Service returns rows from this resource that match the join condition.
source2
Source resource name. The Data Integration Service returns rows from this resource 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 Data 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 Data 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!