Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


I want to concatenate street, city, state, zip and country as Street, City, State ZIp. Country alias it to "address"

SELECT street || "," || city || state || "," || " " || zip || "." || " " || country AS "address";

1 Answer

The format specified in the challenge is:

Street, City, State Zip. Country

Some hints:

  • Double check your commas and spaces. You are missing a comma space between city and state.
  • There shouldn't be a comma between state and zip
  • Rather than concatenate a comma then a space you combine them. ", "
  • You haven't specified the table you are selecting your records from