• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Mapping columns with FK constraint

#1 2011-05-23 09:35:22

BroPl
Member
Registered: 2010-02-06
Posts: 58

Mapping columns with FK constraint

I have mapped two tables connected to each other with fk. The situation looks like this:

Employee_id of table employees has been generated from sequence on insert
Employee_id in salary table has to be filled in from Employees table joined on personal insurance number mapped from csv input.

Both mappings are done in one job Employees have insert order 1 and salary has order 2 how can I map the employees_id ? Do I need to add anothe PostgreSQL_input or can it be done inside tMap by usin "SELECT employee_id from employees emp where emp.insur_no = row1.columnName"?

Offline

#2 2011-05-23 11:44:09

mailforvijaym
Member
Registered: 2010-12-28
Posts: 28

Re: Mapping columns with FK constraint

Hi,

Ya you need one more input to get employee_id from db you can use tMap or iJoin for mapping the records..

Regards,
Vijay.M

Offline

#3 2011-05-23 12:24:57

BroPl
Member
Registered: 2010-02-06
Posts: 58

Re: Mapping columns with FK constraint

By iJoin you mean inner Join in t_Map?

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Mapping columns with FK constraint

Board footer

Powered by FluxBB