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

inputfile-->transformer-->outputfile




create stage variables 
current salary
previous salary(intialize this to null)




derive them as below:
current salary-->previous salary
previous salary---> salary




in the output file derive previous salary as below




previoussalary--->current salary

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What steps should be taken to improve Datastage jobs?

1016


what is ds administrator used for?

1124


What are the different layers in the information server architecture?

1090


What are the components of datastage?

1071


Terminate Activity

1244


what is flow of project?

1949


What is difference between symmetric multiprocessing and massive parallel processing?

1096


Difference between data warehousing and olap?

1054


Differentiate between Join, Merge and Lookup stage?

1047


What are system variables and sequencers in datastage

1080


What are the types of hashed files in data stage

1073


1.what is repartionoing technique? 2.what deliverables transferred to client using datastage? 3.how to write loop statements using nested loop sequence?

2227


which r the connectors used in san?

2152


how to abort the job its matain duplicates?

2543


What is the difference between operational data stage (ods) and data warehouse?

1194