How to mask part of primary key and still be unique?

I have a table where the primary key consist of 2 fields; a birth date and a sosial security number SSN (5 digits int).
I want to keep the birth date, and susbstitue the SSN, but there is some additional requirements:
Is this possible with Data Masker and is there an alreday defined dataset that i can use when my SSN field is an integer?
I want to keep the birth date, and susbstitue the SSN, but there is some additional requirements:
- The combination of birth date and SSN must be unique (primary key)
- The third digit of SSN must be unchanged, because it indicates gender, odd digit for male
- The other 4 numbers of the SSN shall be substituted with random numbers.
Is this possible with Data Masker and is there an alreday defined dataset that i can use when my SSN field is an integer?
Tagged:
Answers
There is certainly a SSN Numbers dataset that you can make use of it.
Please take a look at this help document which maybe useful to you, in the scenario you have described.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: [email protected]