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 / disney

first sort the both name and compamy and then,
using stage variable in transformer:
curr= name:company
val=if curr <> prev then 1 else val+1
prev=curr

o.p = val
name,company,val

Is This Answer Correct ?    6 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?

1418


What is ds designer?

1030


How to RD using transformer?

1363


Highlight the main features of datastage?

1088


What is the roundrobin collector?

1036


Explain usage analysis in datastage?

1093


What is difference between join, merge and lookup stage?

1036


What are the primary usages of datastage tool?

1016


What are the processing stages?

1038


Lookup constraints

1199


What are stage variables and constants?

1095


how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?

2324


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

1135


How do you reject records in a transformer?

1059


What are datastage sequences?

1056