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

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
229,732 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,009 Points

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