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

Stuck in SQL task last part?

Here is result by me for a question but it isn't expecting. SELECT * FROM phone_book WHERE last_name IS NOT NULL;

3 Answers

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,489 Points

Hi,

the reason your answer does not pass is because in the last part of the question it asks you to: Only retrieve the last_name column while you are selecting all columns. Your answer should look like this:

SELECT last_name FROM phone_book WHERE last_name IS NOT NULL;

Otherwise good job :0)

Already passed before your answer, but thanks!!

Maureen O'Neal
Maureen O'Neal
12,930 Points

You answered my question too, so thanks! :)