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

1.new record it will insert but changes of natural key is not present in taget i want to update (here key is composite natural key )can any one help this to explan how to do

2042


Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.

2226


Is it possible to query a hash file?

1950


How many areas for files does datastage have?

1082


What are system variables and sequencers in datastage

1067


Explain datastage architecture?

1332


Define Routines and their types?

1095


What are the functionalities of link partitioner?

971


What are some different alternative commands associated with "dsjob"?

1079


Define project in datastage?

1050


Notification Activity

1346


Name the different sorting methods in datastage.

989


Can you filter data in hashed file?

3720


Differentiate between operational datastage (ods) and data warehouse?

1115


how to read 100 records at a time in source a) hw is it fr metadata Same and b) if metadata is nt same?

2127