Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases Reporting with SQL Working with Text Replacing Strings

Mohd Aamir Mir
Mohd Aamir Mir
3,281 Points

select email from customers where REPLACE(email,"@","<at>") as obfuscated_email;

help with this one

1 Answer

Antonio Suria
Antonio Suria
3,711 Points

you are calling it twice and you should use the REPLACE() before the the FROM like this: select REPLACE(email,"@","<at>") as obfuscated_email from customers;