Separating Single Field to Values

I have a table having column col1, col2. If for a col1 there is some data in col2.
EX: Col1=0012 and Col2 = 12,13,14
then i need these three values 12, 13,14 separately not as a single string as it is in table. Or you can say in need to separate these three values after it is returned by query.There may be only one value or more than 3 as well.
EX: 12,13,14,15.........

Questions by Nishant garg

Showing Answers 1 - 12 of 12 Answers

sunilkumar

  • Oct 23rd, 2011
 

I think u can achieve the above requirement by using transaction control transformation.

  Was this answer useful?  Yes

vizaik

  • Oct 25th, 2011
 

Can be done by using java transformation with the below like code:

StringTokenizer st = new StringTokenizer(col2, ",");
while(st.hasMoreTokens()) {
O_col2 = st.nextToken();
generateRow();
}

  Was this answer useful?  Yes

PREETHI

  • Dec 7th, 2011
 

Can you do this in Sybase. For ex: To separate the door nos. alone from a address column.

PREETHI

  Was this answer useful?  Yes

Divya

  • Aug 2nd, 2013
 

i think it can be done with normalizer...
it will end up like

0012 12
0012 13
0012 14

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions