You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hi,
I have two input tables
row(table) row1(table
--------------- -----------------------------------------------------------
id id name
------ ------------ ------------------
1 1 check
2 1 check1
15 1 default store
17
20 2 radha
23 2 latha
2 rani123456825
15 eee
15 www
15 yyyy455682
I joined two tables, if row.id = row1.id
I just need migrate first row value(check,radha,eee),but I am getting (defaultstore, rani123456825,yyyy455682)
how to do this in talend.
Offline
hi indira,
there is 3 option of match model in tmap,
Unique match - it returns the last value matched ie (defaultstore, rani123456825,yyyy455682)
Fist Match - it returns the first value matched ie (check,radha,eee)
All matches - it returns matches all matches found
regards,
djugal
Offline

Hi djual,
Thank you.
I have one more doubt, first table is same , second table i add one more column like this
-----------------------------------------------------------
id name no
------------ ------------------ --------------
1 check 5
1 check1 7
1 default store 3
2 radha 5
2 latha 7
2 rani123456825 3
15 eee 4
15 www 5
15 yyyy455682 7
I just need 2 rows (check,check1) either of the column
based on the (no) column like this (no= 5) or(no=7)
how to do this in talend.
Offline

Hi djual,
Thank you
I have one doubt
for example
row1(table) Input data
.......................................
num(column) value(column)
..........................................
28 533011
28 533022
28 533033
28 533044
24 srnagr
24 hyd
24 kp
24 mp
24 pgt
I have two columns in a table based one the first column(num)all 28 rows ,The second column(value)all 533011,533022,533033,533044 data has to migrate to column in output table
i am using this condition in out1 expreesion row1.num == 28 , the value column directly mapped out put value column
no errors, output i am not getting
how to do this in talend.
Last edited by indira (2012-07-25 12:55:31)
Offline

Hi djugal
I am trying to read data from MYSQL db and write them to PSQL db. In PSQLl db value field's data type is String(40), name fields's datatype is String(60). In Mysql DB value field's data type is String(255)
i got ERROR: value too long for type character varying(40)ERROR: current transaction is aborted, commands ignored until end of transaction blockERROR: current transaction is aborted, commands
I tried this one
Relational.ISNULL(row2.value)?"":row2.value.trim().length()<40 ?row2.value.trim():row2.value.trim().substring(0,39)
resolved error in output side
but i got ERROR: value too long for type character varying(255)ERROR: current transaction is aborted, commands ignored until end of transaction blockERROR: current transaction is aborted, commands
This is input side
Do you have any idea to solve this issue?
Offline
Pages: 1