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
In this video, you'll learn how to write your first SQL query: retrieving all information from one table.
Definitions
Syntax The vocabulary and grammatical rules surrounding the structure of your code.
Keywords The vocabulary words of a programming language used to issue commands to a computer.
SQL Used
SELECT * FROM <table name>;
The asterisk or star symbol (*
) means all columns.
The semi-colon (;
) terminates the statement like a period in a sentence or a question mark in a question.
Examples:
SELECT * FROM books;
SELECT * FROM products;
SELECT * FROM users;
SELECT * FROM countries;
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-
sulaiman abouabdah
5,314 Points3 Answers
-
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 Points2 Answers
-
Michael Pashkov
22,024 Points2 Answers
-
Adam Tatusko
16,589 Points2 Answers
-
Javier Alvarado
16,060 Points5 Answers
-
PLUS
Ashish Yadav
Courses Plus Student 1,896 Points9 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