• Index
  •  » Talend Enterprise Data Integration » General questions
  •  » [resolved] how to get one row as output from many rows as input with talend

#1 2010-12-16 16:53:10

nabil
Guest

[resolved] how to get one row as output from many rows as input with talend

Tags: [java, talend]

Hi all

my source like this:

id   label     value
1    name    alex
2    adress   lot laola 
3    age        22 

i wanna get just one row as output like this:

id  name    adress    age
1    alex     lot lalola  22


how can I do it ??? i need  help please

#2 2010-12-17 04:22:01

alevy
Member
Registered: 2009-11-20
Posts: 1486

Re: [resolved] how to get one row as output from many rows as input with talend

Are those the only three labels that can exist or can the labels be varied?  Presumably there is also a key by which the label values can be grouped for each person?

Offline

#3 2010-12-22 11:28:24

nabil
Guest

Re: [resolved] how to get one row as output from many rows as input with talend

only three labels that can exist  , and for my input contains just one person  ,my reply is late because i think i have to get a message in my box tell me that there is an answer

#4 2010-12-23 03:14:37

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

Re: [resolved] how to get one row as output from many rows as input with talend

Hi

and for my input contains just one person  ,

If there is only person in a file, you can set the id value with a fixed value on tMap, here is an exmaple job:
in.csv:

id;label;value
1;name;alex
2;adress;lot laola
3;age;22 


Best regards
Shong


Uploaded Images


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

#5 2010-12-23 11:21:26

nabil
Guest

Re: [resolved] how to get one row as output from many rows as input with talend

thanks a lot Mr Shong ,i forgot to add that my output is not a file but a table in my database so how can i use your answer to get a table wich has as colums:id name adress age

#6 2010-12-23 15:29:00

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

Re: [resolved] how to get one row as output from many rows as input with talend

Hi
Using a tFileInputDelimited to read the result from the file and then insert the records into table.

Best regards
Shong


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

#7 2010-12-23 15:37:53

nabil
Guest

Re: [resolved] how to get one row as output from many rows as input with talend

thank you very much

  • Index
  •  » Talend Enterprise Data Integration » General questions
  •  » [resolved] how to get one row as output from many rows as input with talend

Board footer

Powered by FluxBB