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 trialMiroslav Pasajlic
795 PointsQuestion Expecting results like 'L Chalkley' not 'L Chalkley'
How this is possible?
2 Answers
Steven Parker
231,272 PointsI've seen where folks get this message and the problem is either the wrong number of columns are being returned, or the column alias is missing or incorrect.
Show your actual code line if you need a more precise answer.
Steven Parker
231,272 PointsYes, this is also from the number of columns. The alias should be applied only to the "first initial of their first name" column, and when they said "Select their last name too", they meant as a second column. You won't need to do any concatenation for this challenge.
Miroslav Pasajlic
795 Pointsselect substr(first_name, 1, 1) || " " || last_name as initial from customers
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.
Bummer: Expecting results like 'L Chalkley' not 'L Chalkley'.
Bella Bradbury
Front End Web Development Techdegree Graduate 32,790 PointsBella Bradbury
Front End Web Development Techdegree Graduate 32,790 PointsHello Miroslav! Please post your code so that we can see whatβs happening and then help to troubleshoot. In the future, when posting via the "get help" button from a challenge, please make sure "Attach my code with this post" is checked.