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

create a job to get the previous row salary for the current row.if there is no previous row exists for the current row,then the previous row salary should be displayed as null?
empid   salary   previoussalary
10      1000     null
20      2000     1000
30      3000     2000      
40      4000     3000

Answer Posted / indu

input file-->transformer--> output file

declare stage varibales
current salary
previous salary  and initialize the previous salary to null

current salary--> previous salary
previous salary->salary

in the output file derive previousalary as
previoussalary-->current salary (stage variable)

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between == and eq in UNIX shell scripting?

1500


What is orabulk stage?

1047


How a source file is populated?

1066


What are the main features of datastage?

1284


Describe the main features of datastage?

1076


What is a quality stage in datastage tool?

1078


Why we use surrogate key?

1236


client know skid info?

2084


Explain ibm infosphere information server and highlight its main features?

1091


What are the different common services in datastage?

1287


AGGREGATOR default datatype

1461


Which warehouse using in your datawarehouse

2185


What is the method of removing duplicates, without the remove duplicate stage?

1027


What are transforms and what is the differenece between routines and transforms?

1066


Which algorithm you used for your hashfile?

1183