#1 2012-01-27 10:26:59

N1866
New member
Registered: 2011-06-17
Posts: 5

tMap tranform table ?

Hi,

I'm trying to transform data from an exisiting database using the sql ranking-function.
The sql result looks like this

id       date                value    ranking
001    2012-01-27      85        1
001    2012-01-22      80        2
001    2012-01-15      82        3
001    2012-01-08      81        4
002    2012-01-26      20        1
002    2012-01-22      19        2
002    2012-01-15      22        3
003    2012-01-07      18        4

What I'm trying to archieve is an output looking like this

id       1        2      3      4
001    85      80     82    81
001    20      19     22    18

Unfortunately tMAP doesn't output the ranking and i have no idea how to solve my issue
since I'm quite new to TIS.

Thanks fpr your support !

Nils

Offline

#2 2012-01-27 11:42:18

mpa
Member
Company: Thinking Solutions
Registered: 2010-12-17
Posts: 257
Website

Re: tMap tranform table ?

N1866,

I think tDenormalize should give the desired output. Have a look at it in the components manual.

Edit: This will result in a column seperating the values by ";" for example. To split this one column into several columns you should also use a tExtractDelimitedFields.

Regards

Last edited by mpa (2012-01-27 11:45:31)

Offline

#3 2012-01-27 12:38:30

N1866
New member
Registered: 2011-06-17
Posts: 5

Re: tMap tranform table ?

Hi mpa,

thanks for helping me out. These components just work with string, right ?

Offline

#4 2012-01-27 15:54:37

mpa
Member
Company: Thinking Solutions
Registered: 2010-12-17
Posts: 257
Website

Re: tMap tranform table ?

Yea I would assume it only works with string. Because your concatenating the values before you split them into multiple rows.

Offline

Board footer

Powered by FluxBB