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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you schedule or monitoring the job?

1135


What is datastage engine?

1122


How to manage date conversion in Datastage?

1071


What is developer responsibilities in UAT (user acceptance testing and Post implementation phase?

2045


What are the types of hashed files in data stage

1059


What is difference between join, merge and lookup stage?

1041


What are the components of ascential data stage?

1113


How do y read Sequential file from job control?

15802


What is ibm datastage flow designer?

1084


Difference between ‘validated ok’ and ‘compiled’ in data stage?

1197


How to Remove Duplicate using SQL?

1294


Explain datastage architecture?

1336


How and where you used hash file?

1113


Which warehouse using in your datawarehouse

2117


Explain the situation where you have applied SCD in your project?

1976