Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases Reporting with SQL Working with Text Replacing Strings

Problem with this challenge, what am I missing?

Bummer: Expecting results like Lauren.Chalkley<at>example.com not Lauren.Chalkley<at>example.com.

Code used: select email, replace(email, "@", "<at>") as "obfuscated_email" from customers

I cannot understand why is notifying an error when the results matches the correction.

1 Answer

Hey Alessandro!

Right now, you are selecting email (the original) and you are also selecting email with the correct replacement that you need. All you need to do is remove email, from your SELECT statement!

Hi Bramyn!

Thank you for your quick response.

I got it just before your answer, I was just confused abut the error given by the system and was focusing too much on that!

Thanks again!