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 trialTyler Lenox
675 PointsWrite a SQL query to answer the following question. What are all the products in the products table? y
Write a SQL query to answer the following question. What are all the products in the products table? Entered everything
3 Answers
Marcelino Jasso
12,252 PointsI rewatched the video and the answer is SELECT * FROM products;
Hope that helps.
Paige Jones
20,144 PointsI found this task confusing because the video makes it look like you include the <> around your table name.
SELECT * FROM tablename; is the accurate format : )
Fahad Mutair
10,359 Pointsto see whats inside table you have to write this query
SELECT <ColumnName> From <TableName>;
just replace <ColumnName> with the column you want to see
and replace <TableName> with your table in your case products
amalsree
2,396 Pointsamalsree
2,396 PointsThe question is misleading. The question should ask for the retrieval of ALL information in the table along with the product / product names, if SELECT * from PRODUCTS; is the only acceptable answer.