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 trialCole Vance
882 PointsWhat is my query missing? SELECT * FROM users WHERE last_name = "Hinkley" OR "Pettit";
I have tried multiple ways to write this query and have not been able to pass inspection.
2 Answers
Michael Kobela
Full Stack JavaScript Techdegree Graduate 19,570 PointsThe statement needs last_name for each value:
select * from users where last_name = "Hinlkey" OR last_name = "Pettit"
Cole Vance
882 PointsThank you for your help. I tried your suggestion and it didn't work. I double checked for silly mistakes and spelling etc. I'm thinking there's something wrong with the question.
Michael Kobela
Full Stack JavaScript Techdegree Graduate 19,570 PointsI must have copied the wrong string, it had a typo on Hinkley, try this:
select * from users where last_name = "Hinkley" OR last_name = "Pettit"