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

Robbie Thomas
Robbie Thomas
31,093 Points

Concatenating Text 1 of 2

SELECT patrons, first_name || " " || last_name AS "Full name", email AS "To";

Wrong answer, help...

3 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Ok here we go! The challenge wants the first name, last name, email to all be in the to_field. So your alias to "To" is incorrect. Furthermore, you Select, but you never say from which table. It has no idea where it's supposed to start looking. Third, it wants you to concatenate angle brackets around the email address. Take a look at my SQL statement:

SELECT first_name || " " || last_name || " " || "<" ||  email || ">" AS to_field FROM patrons;
Robbie Thomas
Robbie Thomas
31,093 Points

Looks like I'm way off, I think I better take beginner courses in SQL before I tackle more advanced stuff like this.