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 Basics Finding the Data You Want Searching Within a Set of Values

Brendan Quinn
Brendan Quinn
2,847 Points

Hi guys, I am having difficulty with the challenge task please help :)

Hi guys,

I have recently started this course and I am having difficulty with how/where to place the IN value. I think that is where I am going wrong. Can someone please advise and assist me.

Thanks in advance for your support.

Brendan Quinn
Brendan Quinn
2,847 Points

Select price FROM products WHERE price IN = ("7.99", "9.99", 11.99");

Here is the code I have currently used

1 Answer

Brendan, You've pretty much got it. I think the only reason you're not passing is because the challenge is looking for you to include all columns/properties, not just the 'price'. So:

SELECT * FROM products WHERE price IN ('7.99', '9.99', '11.99');
Brendan Quinn
Brendan Quinn
2,847 Points

Hi seth, Thanks very much for your assistance. I will have to keep in mind what the questions are asking in future :)