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 SQL Reporting by Example Orientation: Selecting Data Orientation Quiz

Mary Urban
Mary Urban
6,321 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
231,248 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
6,321 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
231,248 Points

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

Mary Urban
Mary Urban
6,321 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
231,248 Points

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