Forum Discussion
SharonHMA
9 years agoHelper I
How to Create Random, Unique, Alphanumeric Data in a Field
I need to move some data from one system to another. The second system requires a Unique ID field that is 6 digits long, alphanumeric. -my current data comes from two sources and does not have a...
- Anonymous9 years ago
HI SharonHMA,
You can try to use below formula to create guid column, the max count of characters combo is 308,915,776 (26^6).
GUID = UPPER(UNICHAR(RANDBETWEEN(97,122)))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))
Regards,
Xiaoxin Sheng
Anonymous
9 years agoNot applicable
HI SharonHMA,
You can try to use below formula to create guid column, the max count of characters combo is 308,915,776 (26^6).
GUID = UPPER(UNICHAR(RANDBETWEEN(97,122)))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))&UNICHAR(RANDBETWEEN(97,122))
Regards,
Xiaoxin Sheng
Sokon
8 years agoAdvocate V
The big amount of possible values just makes duplicate values extremly unlikely. But it does not really guarantee unique values by design, right? Any idea how to accomplish that?