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

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!