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 trialBruce Wayne
4,534 Pointsi think this challenge is broken!!
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. Type in your command below. Bummer! Expecting results like L & Chalkley not L & Chalkley.
really??
my code is:
select substr(first_name, 1, 1) || ' & ' || last_name as initial from customers;
4 Answers
Thomas Nilsen
14,957 PointsBased on the challenge description, it should look like this:
select
substr(first_name, 1, 1) as initial,
last_name
from customers;
Yishan Li
3,257 PointsTreehouse should consider change the bummer tips to Expecting results like L and Chalkley not "L & Chalkley".
lenabarty
9,788 PointsI have the same issue Bummer! Expecting results like 'L Chalkley' not 'L Chalkley'.
Gishobert Gwenzi
5,087 Pointsit is broken because SELECT SUBSTR(firstname ,1, 1) AS initial, last_name FROM customers; worked foor me