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

explain about citrix scheduling tool in datastage

2512


What are iconv and oconv?

1302


What are routines in datastage? Enlist various types of routines.

1154


hi.... am facing typical problem in every interview " I need some critical scenarios faced in real time" plz help me guys

2933


in oracle target stage when we use load option and when we use upsert option?

2324


What are the types of hashed files in data stage

1146


what is repositery?

1930


What is the difference between in process and inter process?

1203


How can we improve the performance in datastage?

1147


Define data aggregation?

1149


How to reverse the string using unix?

3602


how to sort two columns in single job in datastage.

2957


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

2491


How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...

1563


Lookup constraints

1308