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

How to connect mainframe to Abinitio?

1 Answers   CTS,


Difference between private project parameters ,public project parameters and common project parameters?

1 Answers  


What is data encoding?

0 Answers  


what is different daily and monthly develop the abinitio graphs?

1 Answers   TCS,


Explain how abinitio eme is segregated?

0 Answers  


What is dependent parameter ?

1 Answers   HCL,


Can any body give me the clear explanation about how to separate header,trailer and body records in Ab Initio?

2 Answers   TCS, Wipro,


Describe the elements you would review to ensure multiple scheduled batch jobs do not collide with each other?

0 Answers  


What are “business rules” in ab initio business rules environment (bre)?

0 Answers  


How to convert a single column values 1 2 3 4 to single row of 4 columns ? And vice-versa

0 Answers  


What is the difference between Generate Records Component and Create Data Component?

6 Answers   Steria,


I installed AbInito in my PC.In components there is no "select" component.How can i get that component?and How we can create user defined components?

0 Answers  


Categories