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

Øystein Kallset
Øystein Kallset
11,044 Points

What is wrong with this SQL-statement: SELECT REPLACE(email,"@","<at>") FROM customers

Im getting: Expecting results like Lauren.Chalkley<at>http://example.com not Lauren.Chalkley<at>http://example.com.

The problem is at: https://teamtreehouse.com/library/reporting-with-sql/working-with-text/replacing-strings

1 Answer

Hi Øystein,

You basically have it! Just remember to follow the instruction that asks you to alias your column as "obfuscated_email". So your completed code will look something like this:

SELECT REPLACE(email,"@","<at>") AS obfuscated_email FROM customers

Cheers!