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 trialHelge Kolstad
9,670 PointsDatabase Foundations, SQL calculating, aggregating and other functions. Stage 7 (challenge task 2 of 3)
I'm having a bit of trouble with this one and would appreciate it if someone could help me out.
I have entered:
SELECT CONCAT(first_name, " ", (username)) AS display_name FROM users;
Reaction: Bummer! There's something wrong with your query.
display_name
Andrew chalkers
Ben Bendog24
Pasan Pa$anTheBusinessman
Thanks.
2 Answers
Stone Preston
42,016 Pointsyour output looks like:
Andrew chalkers
however it needs to be:
Andrew (chalkers)
you need to concatenate the parenthesis as well:
SELECT CONCAT(first_name, " ", "(", username, ")") AS display_name FROM users;
Helge Kolstad
9,670 PointsThank you Stone! Your a saint
Stone Preston
42,016 PointsStone Preston
42,016 Pointscan you post a link to the challenge