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
I seem to be getting correct results but my answer is not being accepted as correct
What am i doing wrong in the code?
Question: 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.
select upper(substr(first_name, 1, 1)) || " " || last_name as "initial" from customers;
Steven Parker229,005 Points
You forgot to provide a link to the challenge.
But just looking at your query, I have a few guesses:
- are you sure this task involved concatenation?
- is it possible that the alias "initial" was only intended to apply to the first character?
- are you sure the task required you to apply upper-case conversion?
If I haven't guessed the issue, please provide the link to the challenge page for a more accurate analysis.