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!
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
Nathan Winter2,909 Points
WTF?! I'm stuck on this Challenge Task 2 of 2 on Concatenating Text and not understanding why. Please assist
I don't know why I'm not passing this challenge. Even the message after "Bummer" makes no sense saying it's "expecting 2532 2nd ST, San Diego, California 90222. USA not 2532 2nd ST, San Diego, California 90222. USA."
...LOL, they are identical.
This is the code I'm trying in response to the following challenge task:
Task - In an ecommerce database there's a addresses table. There is an id, nickname, street, city, state, zip, country and user_id columns. Concatenate the street, city, state, zip and country in the following format. Street, City, State Zip. Country e.g. 34 NE 12 st, Portland, OR 97129. USA. Alias the concatenated string as address
SELECT street || ", " || city || ", " || state || " " || zip || ". " || country FROM addresses AS address;
Steven Parker225,652 Points
The alias is part of the concatenated column specification.
It must come before the
FROM clause. You already did something similar for "to_field" in task 1.