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

Development Tools Database Foundations SQL Calculating, Aggregating and Other Functions String Functions

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 Points

Select the first letter of the "first_name", add a period after it, followed by a space and add the "last_name".

I am unable to get past this challenge despite the fact that it appears that I have the same correct syntax....

What could be wrong?

Thanks.

SELECT CONCAT(SUBSTRING(first_name,1,1),., ,UPPER(last_name)) AS name FROM users;
Daniel Markham
Daniel Markham
10,976 Points

Hi Juliette,

To me it looks as though you have some strange quotation marks after your first substring function, i.e. the quotation marks that insert the period and space into the concatenation. Try retyping the quotation marks and resubmitting the code:

sql SELECT CONCAT(SUBSTRING(first_name,1,1),"."," ",UPPER(last_name)) AS name FROM users;

Alternatively, I often use 'single' quotes to wrap around strings (which also works in MS SQL). Like so,

sql SELECT CONCAT(SUBSTRING(first_name,1,1),'.',' ',UPPER(last_name)) AS name FROM users;

Hope this was helpful and good luck!

Dan M