I have a database that contains some confidential personal information. For data analysis purposes, I'd like to send that data out to some people. However, the anonymity of the data needs to be maintained.
Is there a way for me to generate fake tables to do JOINS on i.e. instead of a JOIN to the user
table that has real names, I generate a table fakeuser
dynamically and JOIN to that table instead.
I know it can be done manually but the the query doesn't run on all the users in the whole database and it would be nice to have it done dynamically i.e. when the query calls for fakeuser
ID 23 and the ID does not exist, it just picks a random name from somewhere and populate the table and query.
I'm open to doing this via other types of scripting if MySQL is not flexible enough for this.