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 Reporting with SQL Working with Text Creating Excerpts

Question Expecting results like 'L Chalkley' not 'L Chalkley'

How this is possible?

Bella Bradbury
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Bella Bradbury
Front End Web Development Techdegree Graduate 32,790 Points

Hello 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.

2 Answers

Steven Parker
Steven Parker
231,236 Points

I'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
Steven Parker
231,236 Points

Yes, 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.

select 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'.