Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 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're not restricted to displaying the column names from the table at the top of your results. You can specify your own names for result sets.
SQL Used
SELECT <column name> AS <alias> FROM <table name>;
SELECT <column name> <alias> FROM <table name>;
Examples:
SELECT username AS Username, first_name AS "First Name" FROM users;
SELECT title AS Title, year AS "Year Released" FROM movies;
SELECT name AS Name, description AS Description, price AS "Current Price" FROM products;
SELECT name Name, description Description, price "Current Price" FROM products;
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-
Gabriel Guerra
Data Analysis Techdegree Graduate 9,109 Points2 Answers
-
Özgür Yildirim
4,088 Points0 Answers
-
Rusell Shamu
4,592 Points2 Answers
-
MESFIN ABRHA
230 Points4 Answers
-
Noah Fields
13,985 PointsDoes using single vs double quotes matter in SQL here?
Posted by Noah FieldsNoah Fields
13,985 Points3 Answers
-
Binyamin Friedman
14,615 Points2 Answers
-
Jeremy Mathew
852 PointsLove the lecture just curious on one thing. Why is it that Title didn't need quotes like "First Published"? Thanks again
Posted by Jeremy MathewJeremy Mathew
852 Points3 Answers
-
PLUS
Christopher Franklin
Courses Plus Student 440 Points5 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