Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Start a free Basic trial
to watch this video
In this video we'll review some of the concepts that we've covered in this stage and cover what you'll need to do to in your practice session.
See all of the SQL used in SQL Basics in the SQL Basics Cheat Sheet.
-
0:00
In the previous videos, we've used a library database and
-
0:03
selected all information from a table.
-
0:06
We've used specific column names to sort and
-
0:08
limit the columns of information we want back.
-
0:11
We've also used the AS keyword to alias column names.
-
0:15
These are all important tools that you can use to retrieve
-
0:18
results from a database to show to users and generate reports.
-
0:23
Here's something you might not know.
-
0:24
You see all these keywords select, as, and from?
-
0:28
They can be all used in lowercase.
-
0:31
Running this query has the same results, but people use
-
0:35
uppercase keywords to help you distinguish the different paths of the query.
-
0:39
The uppercase keywords make SQL more readable and is an industry best practice.
-
0:45
Let's switch it back.
-
0:46
[SOUND] That's better.
-
0:50
Now that we've reviewed what we've learned so far,
-
0:52
let's jump into a practice session.
-
0:55
Launch the SQL Playground associated with this video and
-
0:58
we'll take a look at what we have here.
-
1:00
This is a new database with new tables.
-
1:04
Take a look at the database schema section, and
-
1:08
we have a couple of tables here.
-
1:10
We have an actor's table, a movies table, and a reviews table.
-
1:14
And we have the columns for each of these tables.
-
1:18
In each of these coding areas here, there's a task for you to perform and
-
1:22
practice what you've learned.
-
1:25
These lines starting with the double dash are comments.
-
1:29
These don't get executed.
-
1:31
Comments are used for helping people document their SQL queries.
-
1:36
In this case, I've left questions for you to answer in SQL code.
-
1:41
Once you're comfortable with the basics of selecting,
-
1:44
you can move on to the next step in the course.
-
1:47
If you're feeling rusty, you can always come back again and practice.
You need to sign up for Treehouse in order to download course files.
Sign up