Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases SQL Reporting by Example Orientation: Selecting Data Orientation Quiz

Mary Urban
Mary Urban
5,758 Points

SQL Reporting by example - first quiz - students ending in the letter "x"

The question was find all students whose name ends in the letter "x". I just tried this same query in the playground and it worked fine. When I try it in the quiz it tells me I am wrong. This is what I used:

SELECT * FROM students WHERE last_name LIKE "%x";

4 Answers

Ben Deitch
STAFF
Ben Deitch
Treehouse Teacher

Hey Mary! That's now been added as a correct answer. Thanks for pointing it out :)

Steven Parker
Steven Parker
218,860 Points

This quiz seems to only like single quotes (').

Try replacing the double quotes (") with single quotes/apostrophes ('). I'll bet you pass then.

This is probably a bug. You might want to report it to Support.

Mary Urban
Mary Urban
5,758 Points

Thanks everyone - I didn't get a chance to see Steven's note first to try single quotes before it was corrected, but glad it was fixed and I wasn't losing my mind in trying to see what was wrong!

Steven Parker
Steven Parker
218,860 Points

They fixed it before you reported it? How's that for service!

Mary Urban
Mary Urban
5,758 Points

No, I meant I saw your reply and Ben's at the same time so I didn't get a chance to try the single quotes.

Steven Parker
Steven Parker
218,860 Points

Right, and Ben's reply says it was already corrected.