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 trialKeith Fulford
2,003 PointsReporting with SQL syntax error?
In the library database there's a patrons table with the columns id, first_name, last_name, address, email, library_id, and zip_code.
The library is generating new library cards that will display the full name and their library ID. The full name needs to have the last name in all caps. Create a report with two columns of results, one is an alias of full_name the second being the library_id. My Code: SELECT first_name || " " || Upper(last_name) AS "full name", library_id FROM patrons;
I get "Bummer: Expected results to look like "Andrew CHALKLEY", "MCL1001" not "Andrew CHALKLEY", "MCL1001".
Is there a different way to write this someone can see that I should be doing? If it returns the desired input it should be correct in my point of view, but open to suggestions.
This was resolved. I was missing an underscore from "full name", should be "full_name"
1 Answer
KRIS NIKOLAISEN
54,971 PointsThe alias full_name has an underscore
Keith Fulford
2,003 PointsKeith Fulford
2,003 PointsThank you, I cannot believe I over looked that.