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 Changing Cases of Strings

IN a library database....

Need help with this lower/upper case aliasing question. i know the issue is with how I'm aliasing the values but the error gives zero insight into where the issue is and none of the examples or cheat sheet info is pertinent

4 Answers

Steven Parker
Steven Parker
231,248 Points

The "AS" expression to create an alias must follow each item (separately) that will get an alias:

Select Lower(title) AS "lowercase_title", Upper(author) AS "uppercase_author" From Books;

Select Lower(title),Upper(author) From Books AS "lowercase_title","uppercase_author";

Thanks!

Steven Parker could you please check my most recent post? Your feedback helps me the most and the answer i was given isn't helping and I'm struggling a lot with this section. Thanks!

Steven Parker
Steven Parker
231,248 Points

OK, but a better way to help me find it next time would be tag me in a comment in that other question.