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 trialOMKAR POOJARI
6,352 PointsWrite the SQL to retrieve all customer information from the users table.
how to retrieve customer from users
2 Answers
Ante Adamović
Front End Web Development Techdegree Student 2,508 PointsSELECT * FROM users
- stands for what you're looking for users stands for where you're looking for * at
Tim Knight
28,888 PointsHi Omkar,
I'm guessing you're on Question 2 of 5 in the code challenge for selecting all information from a table.
"Write the SQL to retrieve all customer information from the users
table."
The way they've styled the word "users" tells you that's the name of the table that you want to get all of the information from. So you first tell SQL what you want to select in this case, everything or *.
SELECT *
Then you add from which table you want to select everything from and end your statement with a semi-colon.
SELECT * FROM users;