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

Key generation based on concatenation of composite key

$
0
0

I need to generate a uniquie key of length 10 based on the composite keys (6 fields) which is of maximum length 70.

 

For Eg:

 

NumberTitleFirst_NameLast_NameSurnamePlaceUNIQUE_IDENTIFIERLENGTH_UNIQUE_ID
123456Mr.ABCDEFGHNHSJDUADGFSALEM123456Mr.ABCDEFGHNHSJDUADGFSALEM32
123456Mrs.JHGFDASAFADADAFWFSTIRUCHY123456Mrs.JHGFDASAFADADAFWFSTIRUCHY35
123456Mr.BALASADDFJUSDFHNHSJDSALEM123456Mr.BALASADDFJUSDFHNHSJDSALEM34
987456Dr.ANANTHADADDFFQFSSFCHENNAI987456Dr.ANANTHADADDFFQFSSFCHENNAI34

 

In the above example the length of the unique identifier is greater than 10.

 

I donot want to use the function gen_row_num(), as the ID generated for each run will not map to the same record.

For a particular record, I want the ID generated should be same for every job run.

 

Is there anyway to generate the uniquie identifier of lenght 10 with the same data.


Viewing all articles
Browse latest Browse all 4013

Trending Articles



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