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

Just modified the last post with minor changes

First sort the both name and compamy and then,
using stage variable in transformer:
sv1= name:company
sv3=if sv1=sv2 then sv3+1 else sv3(initial value of sv3=1)
sv2=sv1(initial value of sv2 =XXXXXXX)

OP

name company count=sv3

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which algorithm you used for your hashfile?

1120


disign the complex job in u r project?(they are aksing only complex job design and then data flow...)

2406


Why do we use link partitioner and link collector in datastage?

1076


What is the method of removing duplicates, without the remove duplicate stage?

960


How will you move hashed file from one location to another location?

2092


What are the functionalities of link partitioner?

972


How do you start developing a datastage project?

1057


What is the difference between validated and compiled in the datastage?

1190


Explain the importance of surrogate key in data warehousing?

1128


Highlight the main features of datastage?

1089


What is the process of killing a job in datastage?

962


Name the third party tools that can be used in datastage?

1021


How do you remove duplicate values in datastage?

1093


Can you explain how could anyone drop the index before loading the data in target in datastage?

1440


Define Merge?

1259