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

I'm not seeing the difference?

Your query didn't retireve the addresses in the correct format. Expecting 2532 2nd ST, San Diego, California 90222. USA not 2532 2nd ST, San Diego, California 90222. USA.

SELECT street || ', ' || city || ', ' || state || ' ' || zip || '.' || ' USA' AS address FROM addresses;

2 Answers

From the instructions:

In an ecommerce database there's a addresses table. There is an id, nickname, street, city, state, zip, country and user_id columns.

There is a country column that you need to select

SELECT street || ', ' || city || ', ' || state || ' ' || zip || '. ' || country AS address FROM addresses;

No there is no country column.