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 trialadam woolf
1,181 Pointsthere is a bug here. i believe my syntax is correct
SELECT * FROM products WHERE price!="99.9" that is the syntax. what is wrong??
1 Answer
Steven Parker
231,269 PointsThe instructions say to "Find all products that don't have the price of 9.99."
But this query finds the items that don't have a price of 99.9. The decimal point is shifted over one digit.
Also, it would be a good habit to not put quotes around numeric values. It's not a problem here, but it could be on other databases.