Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases Reporting with SQL Working with Text Creating Excerpts

Excerpts From Text

Below is the objective and my response. The error on the objective is saying it is expecting a name, then shows what I am creating and it looks identical. Any advice and if I am far off can you explain please. Thank you.


In an ecommerce database there's a customers table with id, username, first_name, last_name, password, email and phone columns.

Create a report from the customers table that shows their first initial of their first name and alias it as initial. Select their last name too.


SELECT SUBSTR(first_name,"1","1") || " " AS initial, last_name FROM customers;

Dave StSomeWhere
Dave StSomeWhere
19,822 Points

Why are you concatenating a space after the initial - it's not asking for that - try removing it?

1 Answer

Steven Parker
Steven Parker
216,164 Points

Dave has the right idea, the extra space isn't visible on the output line, but it causes the field to not match what the validation system is expecting. Return just the initial and you'll pass.