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

Wiley Conte
Wiley Conte
9,618 Points

Looks like I've got this address formatted correctly.

What am I missing:

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

Žiga Pregelj
Žiga Pregelj
18,126 Points

What do you want to do ? Why are you putting || after every value ?

3 Answers

Wiley Conte
Wiley Conte
9,618 Points

The question asks to concatenate the addresses into the readable format "Street, city, state zip. Country"

Žiga Pregelj
Žiga Pregelj
18,126 Points

maybe this will help you:

https://teamtreehouse.com/community/reporting-with-sql-challenge-task-1-out-of-2

Also, nex time be sure to post question with provided example/task, you can do it directly from the questin page (get help), so we can help you better and more efficient.

Wiley Conte
Wiley Conte
9,618 Points

I am having the issue with task 2/2 in the reporting with sql challenges regarding concatenation. Is there a link to questions on this task?

Žiga Pregelj
Žiga Pregelj
18,126 Points

This will work for you:

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

You need to put address, without "" ;)