Geeks Talk

Prepare for your Next Interview




In my source table I have two columns

This is a discussion on In my source table I have two columns within the Data Warehousing forums, part of the Databases category; In my source table I have two columns, there values like 1 A1 B1 C2 G2 H2 I3 L3 M I want to get in target like this... 1 A*...


Go Back   Geeks Talk > Databases > Data Warehousing

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-15-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
In my source table I have two columns

In my source table I have two columns, there values like

1 A1 B1 C2 G2 H2 I3 L3 M

I want to get in target like this...
1 A*B*C2 G*H*I3 L*M

Please anyone can solve this...

Thanks in advance...

Question asked by visitor Haritha
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-18-2007
Contributing Member
 
Join Date: May 2007
Location: MUMBAI
Posts: 85
Thanks: 34
Thanked 5 Times in 3 Posts
N SRIRAM K is on a distinguished road
Re: In my source table I have two columns

Question wasn't clear
__________________
Thx
SRIRAM N
Hope Everything Good
Reply With Quote
  #3 (permalink)  
Old 03-18-2008
Junior Member
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
arasanrajkumar is on a distinguished road
Re: In my source table I have two columns

Dear Friend,

Could you please more specific with your question? Because the question is not very clear.
Reply With Quote
  #4 (permalink)  
Old 03-26-2008
Junior Member
 
Join Date: Mar 2008
Posts: 22
Thanks: 1
Thanked 2 Times in 2 Posts
tanya_j is on a distinguished road
Re: In my source table I have two columns

Hi,

If im not mistaken ur qn is
Src
1 A
1 B
1 C
2 G
2 H
2 I
3 L
3 M

I want to get in target like this...
1 A*B*C
2 G*H*I
3 L*M

U can designate the column names as ID and NAME.
Use an expression transformation.Declare two variables for ID and NAME.
ie NAME_V PORT use the expression
IIF(ID_V=ID,NAME_V||'*'||NAME,NAME)
ID_V PORT
IIF(ID_V!=ID,ID,ID_V)

Next pass these ports to an aggregator transformation and do GROUP BY ID.
Then pass to target..

Try this ..It will work perfect...

Regards
Tanya
Reply With Quote
Reply

  Geeks Talk > Databases > Data Warehousing


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to add values to other columns Mohamed_Rafi Oracle 10 03-27-2008 12:35 AM
Joining Tables and mapping columns JobHelper SQL 1 08-20-2007 02:30 PM
How to know all the mandatory columns that need to be filled Geek_Guest Oracle Apps 0 05-13-2007 05:36 AM
How a java table be brought to data table? dhandhan QTP 0 04-15-2007 06:14 AM
Source of Job christia Interviews 2 08-09-2006 07:57 AM


All times are GMT -4. The time now is 01:16 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved