Page 1 of 1

flags for duplicate records

Posted: Tue May 11, 2010 1:14 am
by mani10487
hi/hello,

how to perform flag values for duplicate records..

for example if i have
empid,sal,city
100,1000,chn
101,2000,hyd
100,3000,pune in i/p stage


i should get

empid,sal,city,flag
100,1000,chn,1
101,2000,hyd,1
100,3000,pune,0

in the output.. can anyone tell me how to do this..

Posted: Tue May 11, 2010 1:19 am
by vinsashi
use sort stage

Posted: Tue May 11, 2010 1:22 am
by surajkumar
use sort stage .set sort stage property --cluster key change Colum is true

Posted: Tue May 11, 2010 6:17 am
by chulett
surajkumar wrote:use sort stage .set sort stage property --cluster key change Colum is true
This would be the full answer.

Posted: Tue May 11, 2010 7:41 am
by Althaf6553
You can also find the find occurances of the record using cluster key change Column like
if cluster key change Column =1 then first occurance