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 trialEugene Paraponiaris
3,556 Pointsfirst_name || " " || last_name ||" <" ||email ||">" AS "to_list" FROM patrons;
concatenating challenge. My email format is somehow wrong, although in the IDE it works. e.g. Andrew Chalkley Andrew@teamtreehouse.com alias as "to_list".
first_name || " " || last_name ||" <" ||email ||">" AS "to_list" FROM patrons;
2 Answers
Tobias Helmrich
31,603 PointsHey there,
I just checked your statement and there are two problems: The SELECT
keyword in the beginning is missing and the concatenated text should be aliased as to_field, not to_list. So if you add the select keyword and change the alias, the statement should look like this and work:
SELECT first_name || " " || last_name || " <" || email || ">" AS "to_field" FROM patrons;
I hope that helps! :)
jcorum
71,830 PointsTry adding a space after the concatenation operators, and adding a SELECT if you don't already have one. You didn't link to the challenge so I can't check the requirements easily, but the Treehouse editor is pretty picky about spaces, and of course you do have to have a SELECT.
SELECT first_name || " " || last_name || " <" || email || ">" AS "to_list" FROM patrons;