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 trialScott Cook
16,877 PointsGetting 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
3,588 PointsIt 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;
Scott Cook
16,877 PointsScott Cook
16,877 PointsThank you Amy!