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

Databases

Getting correct output but no the "correct" answer

select SUBSTR(first_name, 1, 1) || " " || last_name as initial from customers

Gives me the requested output but is still telling me it's wrong.

Here's the error message

1 Answer

Amy Kelly
Amy Kelly
3,588 Points

It is asking for the initial and last name to be in separate columns and naming just the SUBSTR(first_name, 1, 1) part initial rather than it all. The actual code should be

select SUBSTR(first_name, 1, 1) as initial , last_name from customers;

Thank you Amy!