#1 2008-07-16 12:23:14

YuKiiAi
Member
Registered: 2008-07-08
Posts: 14

inner join in tMap

I want to use inner join in tMap
I have 2 text files which vacation and people as input file
Output is report file type is csv

Example data

This is data

vacation                               people
---------------------              -------------------------
id           |   date                    p_id         |  empid   
---------------------              -------------------------
1000001 | 01072008             11111111 | 00001
1000002 | 02072008             11111112 | 00002


Output

report
---------------------------
p_id         | date
---------------------------
11111111 | 01072008 
11111112 | 02072008


vacation.id is link to people.empid
I want to replace id to p_id
vacation is main and people is lookup

how to join this?

Thank you for answer

Regards,
Yu

Offline

#2 2008-07-17 07:29:40

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: inner join in tMap

Hello

Here comes a Java scenario,
vacation file:

1000001|01072008       
1000002|02072008

people file:

11111111|00001
11111112|00002


result:

Code:

Starting job delimited at 13:29 17/07/2008.
.--------+--------.
|    tLogRow_1    |
|=-------+-------=|
|p_id    |date    |
|=-------+-------=|
|11111111|01072008|
|11111112|02072008|
'--------+--------'

Job delimited ended at 13:29 17/07/2008. [exit code=0]

Best regards

         shong


Uploaded Images

Last edited by shong (2008-07-17 08:32:44)


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2008-07-17 09:37:33

YuKiiAi
Member
Registered: 2008-07-08
Posts: 14

Re: inner join in tMap

Thanks Shong,

It's work very well

Regards,
Yu

Last edited by YuKiiAi (2008-07-17 09:42:50)

Offline

Board footer

Powered by FluxBB