Databases Reporting with SQL Working with Text Concatenating Text

Fairooz Adams
Fairooz Adams
2,704 Points

Can't solve, stuck:

How do I solve this:

In the library database there's a patrons table listing all the users of the library. The columns are id, first_name, last_name, address, email, library_id and zip_code. Generate a list of strings that are in the following format: Andrew Chalkley andrew@teamtreehouse.com. Concatenate the first name, last name and email address for all users. Alias it to to_field. This will be used in the "To" field in email marketing.

1 Answer

Steven Parker
Steven Parker
155,473 Points

You forgot to show your query! But one common issue on this challenge is with the alias. Don't get confused by the comment about how the result is going to be used in the "To" field of an email message. Make sure that you alias your your concatenated column as to_field.

If that's not the issue, please post your query code here for a more specific answer.