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

souce file having the columns like
name company
krish IBM
pooja TCS
nandini WIPRO
krish IBM
pooja TCS
if first row will be repeat i want the result like this
name company count
krish IBM 1
pooja TCS 1
nandini WIPRO 1
krish IBM 2
pooja TCS 2


Answer Posted / shasank, pr3systems

use transforemr stage and give three stage variable with intial value as 0,
then give (if company=ibm then count=count+1 else stgvar1)
like give three conditions for remaing two companies in two stage variables)
and in column derivation give if company=ibm then stgvar1 else
if company=wipro then stgvar2 else if company=tcs then stgvar3 else 0(company not in list)

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Highlight the main features of datastage?

1221


What are the main features of datastage?

1355


What is difference between join, merge and lookup stage?

1152


What is the difference between odbc and drs stage?

1137


What is the difference between an operational datastage and a data warehouse?

1212


How do you reject records in a transformer?

1178


What are the primary usages of datastage tool?

1132


What are the various kinds of the hash file?

1200


Explain the importance of surrogate key in data warehousing?

1234


If you want to use a same piece of code in different jobs, how will you achieve this?

1324


What is datastage engine?

1225


Define APT_CONFIG in Datastage?

1135


What is the purpose of pivot stage?

1235


project Steps,hits, Project level HArd things,Solved methods?

2185


What is the difference between server job and parallel jobs?

1202