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 trial

Databases

SQL BASICS 3 OF 4

SQL Basics

Challenge Task 3 of 4 We're now back with the smartphone database. In the phone_book we have the columns id, first_name, last_name and phone. Alias the first and last names and phone as "First Name", "Last Name" and "Phone Number". Type in your command below. MY CODE :

SELECT 'first_name' AS 'First Name', 'last_name' AS 'Last Name', 'phone' AS 'Phone Number' FROM phone_book;

Still no Work ….
Bummer! Did you select from the users table?

2 Answers

Josh Keenan
Josh Keenan
20,315 Points

'''SQL

SELECT first_name AS "First Name", last_name AS "Last Name", phone AS "Phone Number" FROM phone_book;

Here's my solution!

Great Job Cool....

Jeff Lemay
Jeff Lemay
14,268 Points

How many times are you going to post this?

β€œThe most difficult subjects can be explained to the most slow-witted man if he has not formed any idea of them already; but the simplest thing cannot be made clear to the most intelligent man if he is firmly persuaded that he knows already, without a shadow of doubt, what is laid before him.”

Jeff Lemay
Jeff Lemay
14,268 Points

Thanks.

Just trying to point out that you don't need to post the same exact question three times in a short span. Give everyone a chance to respond to your original post instead of cluttering the page, it takes away from other users who have questions.