Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Problem with gen_row_num_by_group() function.

$
0
0

Hi ,

 

My input data like this

 

DOCUMENTNO_YEAR

11000000022008

11000000022008

11000017042010

11000017042010

 

I am using the gen_row_num_by_group() function to generate the unique values for the each group.

 

in my query my function like this

 

gen_row_num_by_group(QT_GET.DocumentNo_Year)

 

then i am getting output like this

 

DOCUMENTNO_YEAR     OCCURANCE

11000000022008     1

11000000022008     2

11000017042010     1

11000017042010     1

i checked the length of the input also all are length 14 only . but i dont know why gen_row_num_by_group() function giving the wrong result.

 

Is it is any bug ?

 

Please help me in the solution .

 

Thanks&Regards,

Ramana


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>