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 trialJoe Li
3,234 PointsWhat column am I missing from my query?
The question mentions there are only four columns in products: id, name, description and price. I included all four columns in my query and yet it returns with an error saying "You didn't select all columns". Can someone help point out which one I am missing?
2 Answers
Steven Parker
231,236 PointsWhen they ask for "all columns", it implies that you should use the "SELECT *
" syntax which selects all columns without naming any explicitly.
Joe Li
3,234 PointsThanks guys, I realised instantly after I posted the question which was weird because the questions prior, I typed all the columns and that seemed to work.
Nethertheless a good lesson learned for the future.
Tim Oltman
7,730 PointsTim Oltman
7,730 PointsHi Joe,
Try selecting all of the columns with * instead of listing them all in your query.
Tim