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 trialVictor Rivera
827 PointsBring back both the first name and last name for every person in the phone book. The phone will filter the appropriate s
SELECT first_name, last_name, FROM phone_book;
SQL Error: near "FROM": syntax error
2 Answers
Tadeáš Firich
7,866 PointsHello Victor. I think your problem is in the extra comma before FROM. Let me explain it. This is you code:
SELECT first_name, last_name, FROM phone_book;
And i think this is the right code:
SELECT first_name, last_name FROM phone_book;
Was it helpful for you? You can give me some points :).
Victor Rivera
827 PointsHello Tadeas, thanks for your reply, I do not what happened, I think I was doing exactly that as you pointed out but it would not work. This morning I tried and it did work, what was going on I do not know. Thank you again for your help. b/r Victor
Ari Misha
19,323 PointsAri Misha
19,323 PointsHiya Victor! can you link us to the challenge?