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 Reporting with SQL Working with Text Concatenating Text

Minh Duong
Minh Duong
1,616 Points

SELECT CONCAT(first_name, ' ', last_name) AS "To_field", CONCAT('<', email, '>') AS "To" FROM patrons; why is missing?

SELECT CONCAT(first_name, ' ', last_name) AS "To_field", CONCAT('<', email, '>') AS "To" FROM patrons;

1 Answer

Steven Parker
Steven Parker
231,269 Points

Concatenation should be done using the special operator (||) as taught in the lessons. I don't think this database even has a "CONCAT" function.

And when the instructions say "Concatenate the first name, last name and email address", they mean you should combine them into one field.

Then when they say "Alias it to to_field", it is important to spell it exactly as shown, in all lower case.