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 Filtering by Comparing Values

What 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?

Tim Oltman
Tim Oltman
7,730 Points

Hi Joe,

Try selecting all of the columns with * instead of listing them all in your query.

Tim

2 Answers

Steven Parker
Steven Parker
229,644 Points

When they ask for "all columns", it implies that you should use the "SELECT * " syntax which selects all columns without naming any explicitly.

Thanks 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.