Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


source
name sal
aaaa 2000
bbbb 3000
abcd 5000


Target
name sal
aaaa 2000
bbbb 3000
abcd 5000
total 10000


how to get total as new row and sum as 10000

thanks

Answers were Sorted based on User's Feedback



source name sal aaaa 2000 bbbb 3000 abcd 5000 Target name sal aaaa ..

Answer / babu

Hi,
Mapping:

SRC==>EXP==>AGGR==>UNION
|==>TRG
SRC==>

EXP:In first DFD we have EXPR and AGGr,in EXPR we have to
take one output port with a constant value by using that
output port calculate the sum sal in AGGR.In AGGR take one
output port that as name field with constant value(total)
and the sum sal field as sal after that UNION trns is there
union the two DFD's,finally we get the what we expect.

Is This Answer Correct ?    7 Yes 1 No

source name sal aaaa 2000 bbbb 3000 abcd 5000 Target name sal aaaa ..

Answer / kulasekhar reddy tholeti

Try it 100% you will get answer.

Select name,no from source
union
select "total",sum(sal) from source;

Is This Answer Correct ?    1 Yes 0 No

source name sal aaaa 2000 bbbb 3000 abcd 5000 Target name sal aaaa ..

Answer / chinthi

actually i need total as new record value as 10000

Is This Answer Correct ?    0 Yes 0 No

source name sal aaaa 2000 bbbb 3000 abcd 5000 Target name sal aaaa ..

Answer / babu

Hi Chinthi
You will do the above mapping,definely you can get
whatever you want.


Please check and intimate in case of any issues.

dwarak.vbr@gmail.com

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Informatica Interview Questions

difference between shortcut and reusable transformation?

2 Answers  


What is the difference between a router and a filter transformation?

1 Answers   TCS,


what is the diff b/w target load plan and cbl?

3 Answers   CTS, iGate,


What is confirmed dimension?

3 Answers  


Where is the cache stored in informatica?

5 Answers   Infosys, Satyam,


Can any one describe what is audit table briefly?how does it look like and what are the columns in it?

3 Answers   Syntel,


What are the join types in joiner transformation?

1 Answers   Informatica,


If informatica has its scheduler why using third party scheduler?

0 Answers  


What are multi-group transformations?

0 Answers   Informatica,


what is diff between IN and EXIT commands

1 Answers   HCL, Schneider,


What are the diffrences between joiner transformation and source qualifier transformation?

2 Answers  


In any project how many mappings they will use(minimum)?

1 Answers  


Categories