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 Concatenating Text

Tom Holliday
Tom Holliday
2,868 Points

I don't understand how we are supposed to know what the correct email formatting is. Are we supposed to add the < signs?

I've tried so many combinations but none of them work e.g. SELECT first_name || " " || last_name || " " || email AS "to_feild" FROM patrons; SELECT first_name || " " || last_name || " <" || email || ">" AS "to_feild" FROM patrons; SELECT first_name || last_name || email AS "to_feild" FROM patrons; SELECT first_name || " " || last_name || " <" || email || ">."AS "to_feild" FROM patrons;

I tried more than that but you get the idea.

1 Answer

Steven Parker
Steven Parker
211,156 Points

You're right about needing the angle symbols. And your 2nd try would have passed except for spelling the alias as "to_feild" instead of "to_field".

Fix that and you've got it.

Tom Holliday
Tom Holliday
2,868 Points

bruh I'm too smart, Thanks.