by DAnderson » Tue Dec 11, 2012 9:29 am
Hello Sebastian,
The way I deal with invalid users here is to determine a common thread throughout the fake accounts. Usually phone number e.g. "123456" or like you have seen first, middle or last name. One thing to watch for is matching first and last name since some of these have been valid. I have found it not necessary to remove user info from other tables like "user_interest: etc. since they take no real needed space in the database.
I usually start out like the following:
select * from users where phone like "123456"; or another item I want to key off of. first_name, last_name, email etc.
once I determine a block of fake users I delete them as follows:
delete from users where phone = '123456'; or any other field fond to be invalid.
Also if you feel the need to remove the user id's from other tables I would go with the following:
select user_id from users where phone like "xxxxx" or first_name like "xxxxxx" or ---- into outfile...........
then create a pl-sql script that will read the out file so you can use it to delete the user id's from your other tables.
Hope this helps.
All best,
Delvon
Delvon Anderson
Systems Analyst
ULS - Information Technology
University of Pittsburgh
Room 129, 7500 Thomas Blvd.
Pittsburgh, Pa. 15208
Last edited by
DAnderson on Tue Dec 11, 2012 11:45 am, edited 1 time in total.