#1 2012-06-01 14:30:08

king3019
New member
Registered: 2012-06-01
Posts: 3

transformation

Tags: [development]

Hi Shong
i new to Talend and i have issue as follows  please sent me screen shot will be greatful to u



my input  excel is
==============
Name    DOB    AGE
Andi    6/12/2001    10
Agus    7/11/2001    NULL
Baba    2/14/2005    NULL


if i have excel data as above and  if i want to load one more columb name as  "comments " and load the data in the form  of


comments
good
very good
ok


and my out put should be as follows


Name    DOB    AGE            comments
Andi    6/12/2001    10             good
Agus    7/11/2001    NULL        very good
Baba    2/14/2005    NULL         ok



issue : 2) and if i want to calculate the Age from current date how to do it ?


Name    DOB        AGE            comments
Andi    6/12/2001    10             good
Agus    7/11/2001    20        very good
Baba    2/14/2005    30         ok

Offline

#2 2012-06-01 15:08:19

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

Re: transformation

Hi
What's the business rule you use to compute the comments column? why it is "good" for the first row and "very good" for the second row? The same question to the AGE column.

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

#3 2012-06-02 07:51:15

king3019
New member
Registered: 2012-06-01
Posts: 3

Re: transformation

hi shicong

the example in which i am using is a scenario like after loading the data in db from excel and if i want to add one more colum and load the data is it possible in talend and how i need scren shot so that in db the first load data would be

my input  excel is and input in database should be
==============
Name    DOB    AGE
Andi    6/12/2001    10
Agus    7/11/2001    NULL
Baba    2/14/2005    NULL

comments colums is added by teacher regarding the student performance and wants to add a new colum in the existing database

Name    DOB    AGE            comments
==============================

Andi    6/12/2001    10             good
Agus    7/11/2001    NULL        very good
Baba    2/14/2005    NULL         ok



Scenario 2

i want to calculate age when dob is given in excel and load into database so my input file will be

input file is excel

Name    DOB    AGE
===============
Andi    6/12/2001    10
Agus    7/11/2001    NULL
Baba    2/14/2005    NULL
=================

and after loading into databse the out put of age should be with current date

output in DB or excel should be

Name    DOB    AGE
================
Andi    6/12/2001    10
Agus    7/11/2001    20
Baba    2/14/2005    30



i hope i replied your question, please sent me screen shot how to do it using talend

Offline

Board footer

Powered by FluxBB