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

> SELECT * FROM products WHERE 10.99 <= price; why does this not work?

the question is not specific enough.

Steven Parker
Steven Parker
231,128 Points

Please provide a link to the question so we can take a look.

1 Answer

Daniel Alfonso Jiménez Suárez
Daniel Alfonso Jiménez Suárez
9,151 Points

SELECT * FROM products WHERE price <= 10.99; First its the name of the column and after the value to compare

Steven Parker
Steven Parker
231,128 Points

Names and values can be on either side of the compare, but the original code was looking for price greater or equal and now it would be less than or equal.

But is the type of comparison the issue? I still haven't seen the original question to check it.