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 trialmatt gillie
847 PointsWhat have I done wrong here ?
This seems to be returning the email address correctly but how do I wrap it in < > like the question wants me too ?
1 Answer
Steven Parker
231,261 PointsYou'll build up a string using concatenation, using the || operator. Your string will be a mix of database columns and literal strings in quotes.
I don't recall the exact field names, but it will partially look something like this:
SELECT firstname || ' ' || lastname || ' <' || email || '>' AS concatenated_name_and_email FROM...
Of course, you'll substitute the correct column and alias names, and add the other parts of the query.
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherCan you please link the challenge?