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 trialRajnish Kumar
41,092 Pointsquery for Name autocomplete??
We're still using the phone_book table. Remember it has the columns of id, first_name, last_name and phone.
Imagine a user is typing someone's last name in a search facility on the phone. As the user types, suggestions will appear on the screen. Bring back both the first name and last name for every person in the phone book. The phone will filter the appropriate suggestions.
1 Answer
Christopher Ripple
5,009 Pointsnot sure what your question is on this since it looks like you just copied the challenge instructions but here is the query you would use for it:
select first_name, last_name from phone_book
Steven Parker
231,269 PointsFYI: Explicit answers without any explanation are strongly discouraged by Treehouse and may be subject to redaction by staff or moderators.
Steven Parker
231,269 PointsSteven Parker
231,269 PointsIt looks like you've just copied the instructions from a challenge here. Did you have a question about it?
And if you need help with your work, please show your complete query here and provide a link the the course page.