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

How to clean the datastage repository?

1124


Can you explain players in datastage?

1189


How many types of hash files are there?

1177


Differentiate between hash file and sequential file?

1068


How many areas for files does datastage have?

1146


How do u convert the columns to rows in datastage?

1192


How a routine is called in datastage job?

1099


How do you remove duplicate values in datastage?

1151


What are iconv and oconv?

1240


In Datastage, how you can fix the truncated data error?

1156


Lookup constraints

1247


What are the main features of datastage?

1279


Difference between sequential file and data set?

1197


what is the use of surogate key in datastage

2307


What is the purpose of pivot stage?

1164