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


i have a scenario in which i/p columns areID,salary with
1,1000 2,2000 and 3,3000 i need an extra column in the o/p
named avg(salary)how can i get it?

Answers were Sorted based on User's Feedback



i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / sid

source->aggregate(with group key-ID,Avg(salary))-->Target

Is This Answer Correct ?    5 Yes 1 No

i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / subhash

source -> Transforemer(add column DUMMY and give value 1)
==> 2links,
1st link(with 1 hard coded value) to Copy,
1,1000,1
2,2000,1
3,3000,1
2nd Link to Join,
1,1000
2,2000
3,3000

1st linkcopy -> aggregate (Group Key-->DUMMY, take avg)--
>Join
1,2000(AVG salary)
->Join --> target
1,1000,2000
2,2000,2000
3,3000,2000

Is This Answer Correct ?    2 Yes 1 No

i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / ramakrishna

SRC-aggregator-tgt

In the aggregator take the avg

Is This Answer Correct ?    0 Yes 0 No

i have a scenario in which i/p columns areID,salary with 1,1000 2,2000 and 3,3000 i need an extra ..

Answer / sai

source -> Transforemer(add column and give value 1) ->
copy -> aggregate (take sum)
->Join -> tx -> target

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Data Stage Interview Questions

when we will use connected Lookup & Unconnected Lookup

3 Answers   Wipro,


job locking methods? How can we unlock the job?

3 Answers   IBM,


how to cleansing data

6 Answers   Cap Gemini,


in datastage scenario this is sourec data i want this traget? tell me please? source target ------- ------- Mohan,Prasad,Naresh Mohan Prasad Naresh

1 Answers   IBM,


1.How to read multiple file from sequential stage. 2.If a file doesn't arrive or doesn't exists in sequential stage how do u handle this. 3.What do you do before taking data from source to staging area. 4. I have a remove duplicate stage and transformer stage.what will u do for optimizeing the performance of the job.

4 Answers   Syntel,


Hi All , in PX Job I have passed 4 Parameters and when i run the same job in sequence i dont want to use those parameters , is this possible if yes then how

0 Answers   TCS,


How a server job can be converted to a parallel job?

0 Answers  


Create a job to load all unique products in one table and the duplicate rows in to another table. The first table should contain the following output A D The second target should contain the following output B B B C C Q2. Create a job to load each product once into one table and the remaining products which are duplicated into another table. The first table should contain the following output A B C D The second table should contain the following output B B C

3 Answers   Deloitte, IBM,


how can u find out the datastage job is running on how many nodes

7 Answers   IBM,


how to implement scd2 in datastage 7.5 with lookup stage

0 Answers   TCS,


Hi friends If anybody completed datastage 8.5 certification.Could please guide me what are the topics new in 8.5 certification.

2 Answers  


Differentiate between odbc and drs stage?

0 Answers  


Categories