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
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 |
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 |
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 |
I want load the data into target with out 1st and last record.
What do you mean incremental aggregation?
Explain what is informatica metadata and where is it stored?
I have 4 columns in a table say, name ,address, salary and city. So based on distinct city names, i need to combine the other data and send it to a flat file. Distinct city names can be 4 or 5 or 6. So it has to dynamically generate flat files(4 or 5 or 6) corresponding to the city names.
Under what condition selecting sorted input in aggregator may fail the session?
i have ten flat files with same structure,if i want to load it to single target,and mapping needs to should show only one source.what will be the steps to taken to achieve it?/
3.how will u get information about bugs how will u rectify the bugs in realtime whch tool we are using to rectify the bugs
wht target override?wht advantages it has compare to target update?
How do you take care of security using a repository manager
If sal is null then replace it with min(sal). Can any one write a query for this in oracle ? Advance Thanks
What are the types of groups in Router transformation?
How can yoU create or import flat file definition in to the warehouse designer?