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


Input -
Name|city |startyear
Rahul |Mumbai|2010
Rahul|kolkata|2014
Rahul|Delhi|2018

Output should be-

Name|city |startyear|endyear
Rahul |Mumbai|2010|2014
Rahul|kolkata|2014|2018
Rahul|Delhi|2018|9999



Input - Name|city |startyear Rahul |Mumbai|2010 Rahul|kolkata|2014 Rahul|Delhi|2018 Output s..

Answer / yash

We can use rollup to convert whole data in vector and later use vector data in normalize to assign last column.

rollup: use accumulation function on all columns

NORMALIZE:

length :: 3;

out::normalize(in,index)=
begin
out.name :: in.name[index];
out.city :: in.city[index];
out.startyear :: in.startyear[index];
out.endyear :: if(index==2) 9999 else in.startyear[index+1];
end;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ab Initio Interview Questions

What are the key elements of a data processing system?

0 Answers  


What exactly do you know about the typical data analysis?

0 Answers  


. What is adhoc multifiles? How to use in abinitio graph?

1 Answers   IBM,


What is dependent parameter ?

1 Answers   HCL,


How Does MAXCORE works?

4 Answers   CTS,


What exactly do you understand with the term data processing and businesses can trust this approach?

0 Answers  


Hi friends, i have input like below naresh 10,20 suresh 30,40 i want out put like naresh 10 naresh 20 suresh 30 suresh 40 please help me thank you

3 Answers  


What is the diff between abinitiorc and .abinitiorc files ?

1 Answers   IBM, Infosys, TCL,


What is AB_LOCAL expression where do you use it in ab- initio?

5 Answers   Cognizant,


How do you add default rules in transformer?

0 Answers  


What will be the skew for, input file->partition by key-> partition by round robin->output file

0 Answers  


Pdl with an example?

0 Answers  


Categories