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

Paul Sirota
Paul Sirota
1,514 Points

reporting in SQL

I hope my code attached this time!!!!

If I am correct all is to add "<>" chracters before and after the email. Am I right and how do I do this?

3 Answers

Steven Parker
Steven Parker
221,450 Points

:point_right: You are very close! You just forgot to use the column alias

(and you have an extra space):

SELECT first_name || " " || last_name || " <" || email || ">" AS to_field FROM patrons;

For future reference, the "Get Help" button in the challenge will automatically include your code and a link to the challenge.

Paul Sirota
Paul Sirota
1,514 Points

fuck this site I will just add my code here:

SELECT first_name||" "||last_name||" "||" <"||email||">"
FROM patrons;
jason chan
jason chan
31,008 Points

Can you please post the link of where you having trouble?