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 trialBill Ertle
9,286 PointsMySQL
i'm having a problem with the following challenge question:
Select the first letter of the "first_name", followed by a period, followed by a space and then add the "last_name". Also, convert "last_name" to upper case. Alias it as "name". Here's an example: "A. CHALKLEY". The name of the table is "users".
here's my answer:
select concat(substring(upper(first_name),1)"."," "), upper(last_name) as full_name from users;
thank you for your input!
1 Answer
Damien Watson
27,419 PointsSorry I can't check this, but it looks like your 'concat' doesn't include the last_name. Also, it should be aliased as 'name'.
Maybe try
select concat((substring(upper(first_name),1)"."," "), upper(last_name)) as name from users;