Skip to content

Instantly share code, notes, and snippets.

@PortNumber53
Last active May 31, 2017 21:41
Show Gist options
  • Save PortNumber53/b0efba57a96777003cbaec147af74561 to your computer and use it in GitHub Desktop.
Save PortNumber53/b0efba57a96777003cbaec147af74561 to your computer and use it in GitHub Desktop.
BB: remove PII
UPDATE customer SET
first_name = CONCAT('f', customer_id),
last_name = CONCAT('l', customer_id),
home_phone = SUBSTR( CONCAT(customer_id * 95427, customer_id * 3841, customer_id * 7664), 1, 10),
fax_phone ='',
mobile_phone = SUBSTR( CONCAT(customer_id * 89435, customer_id * 3725, customer_id * 49325), 1, 10),
other_phone = '',
address1 = CONCAT(customer_id, ' street'),
address2 = '',
address3 = '',
address4 = '',
city = '',
postal_code = '',
state = '',
postal_code = '',
email1 = CONCAT('e', customer_id, '@scrubbedmail.com'),
email2 = '',
county = '',
ship_address1 = CONCAT(customer_id, ' shipped street'),
ship_address2 = '',
ship_address3 = '',
ship_address4 = '',
ship_city = '',
ship_state = '',
ship_postal_code = '',
ship_county = '',
screen_name = CONCAT('sc', coach_id);
UPDATE member SET
first_name = CONCAT('f', coach_id),
last_name = CONCAT('l', coach_id),
company_name = '',
home_phone = SUBSTR( CONCAT(coach_id * 91827, coach_id * 3441, coach_id * 764), 1, 10),
fax_phone ='',
mobile_phone = SUBSTR( CONCAT(coach_id * 8435, coach_id * 3425, coach_id * 4325), 1, 10),
other_phone = '',
address1 = CONCAT(coach_id, ' street'),
address2 = '',
address3 = '',
address4 = '',
city = '',
postal_code = '',
state = '',
postal_code = '',
email1 = CONCAT('e', coach_id, '@scrubbedmail.com'),
email2 = '',
county = '',
ship_address1 = CONCAT(coach_id, ' shipped street'),
ship_address2 = '',
ship_address3 = '',
ship_address4 = '',
ship_city = '',
ship_state = '',
ship_postal_code = '',
ship_county = '',
screen_name = CONCAT('sc', coach_id),
payer_name = CONCAT('p', coach_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment