I got 2 tables in sql 2008
Table1
Id Name Surname City
1000 Alex White London
1001 John Brown Brussels
..
Table2
Id Surgeon Room aId
1 Mike J. A104 1000
2 Jack S. C144 1001
...
And I have a query like:
Select a.Id,b.Id,
a.Name,a.Surname,a.City,b.Surgeon,b.Room
into #results
from Table1 a
inner join Table2 b on a.Id = b.aId
What I want to do is to anonymize the a.Id and b.Id values for privacy, by using dummy ones instead of the real ones. I added a random mathematical operations before, like:
Select aId = a.Id * 22 / 5 + 14 * 2
,bId = b.Id * 12 / 4 + 7 * 3
...
but honestly I am not really happy what I am doing here and I am looking for a more professinal way to provide this. Any advice would be appreciated.