Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Tools We'll be Using 3:57
- Your First SQL Statement 4:01
- Selecting All Information From a Table 5 objectives
- Retrieving Specific Columns of Information 2:53
- Retrieving Specific Columns of Information 5 objectives
- Categorizing Your Output with 'AS' 4:33
- Categorizing Your Output with 'AS' 4 objectives
- Review & Practice with SQL Playgrounds 1:50
- Getting Data From a Database Review 8 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
You don't have to retrieve all the information from a table. You can retrieve only the information you want from the columns you want and filter out the rest.
SQL Used
Retrieving a single column:
SELECT <column name> FROM <table name>;
Examples:
SELECT email FROM users;
SELECT first_name FROM users;
SELECT name FROM products;
SELECT zip_code FROM addresses;
Retrieving multiple columns:
SELECT <column name 1>, <column name 2>, ... FROM <table name>;
Examples:
SELECT first_name, last_name FROM customers;
SELECT name, description, price FROM products;
SELECT title, author, isbn, year_released FROM books;
SELECT name, species, legs FROM pets;
See all of the SQL used in SQL Basics in the SQL Basics Cheat Sheet.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Abiel Ortega
2,171 PointsHow to Practice SQL commands and how to work with DataBases at home?
Posted by Abiel OrtegaAbiel Ortega
2,171 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up