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...


if we have input eno 1,2,3,1,2,3 year
2001,2002,2003,2001,2002,2003 and sal
10000,20000,30000,20000,30000,40000

ex-output
eno totsal
1 30000
2 50000
3 70000

Answers were Sorted based on User's Feedback



if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / sujana

@above
wer do we calculate sum here..i think v shud create an o/p
port 4 sum.(sum sal) and grpby eno

Is This Answer Correct ?    5 Yes 0 No

if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / chandra

After the source qulifier take Aggr t/r pass all the ports
to th Aggr t/r. group by eno & year.Add a new out put port
in this derive the logic as sum(sal) & pass to the Target
Def.


I think this would work.

Regards,
Chandra

Is This Answer Correct ?    1 Yes 0 No

if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / narendra

in source qulifier we override query like this

select eno,sum(sal as totsal)from emp group by eno

Is This Answer Correct ?    2 Yes 1 No

if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / ankit kansal

In Aggregator Transformation Create an output Port name TOTSAL, And in front of eno port check group by and in TOTSAL column use SUM(sal)


http://deepinopensource.blogspot.in/

Is This Answer Correct ?    1 Yes 0 No

if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / lakshmi

Use aggrigator transformation group by port as eno

Is This Answer Correct ?    1 Yes 3 No

if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / suresh reddy

select eno,sal,sal+sal as totsal from ex GROUP BY sno,sal;
will give the output same as above

Is This Answer Correct ?    0 Yes 2 No

if we have input eno 1,2,3,1,2,3 year 2001,2002,2003,2001,2002,2003 and sal 10000,20000,30000,20..

Answer / suresh reddy

select eno,sal,sal+sal as totsal from ex GROUP BY sno,sal;
will give the output same as above

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Informatica Interview Questions

There are 10 flat files; out of 10 files 1 file is empty. How do you identify the empty file? How can you load all files into targets?

1 Answers   Accenture,


source : col1 101 101 101 102 102 102 103 103 103 col2 1000 1500 2000 1200 2300 3000 2400 1300 2000 i need target as col1 101 102 103 col2 1000,1500,2000 1200,2300,3000 2400 1300 2000

6 Answers   CTS, Wipro,


can we override a native sql query within informatica? Where do we do it? How do we do it?

0 Answers  


When i run workflow first session runs 4 times 5th time 2nd session must run? How can u do?

1 Answers  


select * from emp where sal>(select min(sal) from emp) how to implement the same in informatica ?

5 Answers   Puma,


What is complex mapping?

0 Answers  


Mention a few design and development best practices for informatica?

0 Answers  


What are the guidelines to be followed while using union transformation?

0 Answers   Informatica,


Is it possible to revert a global repository to local one and why?

0 Answers  


2,can we insert duplicate data with dynamic look up cache,if yes than why and if no why?

2 Answers   TCS,


My source is flat file which contain only one column with data type varchar.now i want to send string data types into one target and if any numbers and special characters are there that should be send it into another target.so how do you design a mapping for this?

6 Answers   Accenture,


Can we update the data in flat file using update strategy?

3 Answers  


Categories