Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases

Need some help

Now we're using a database from a smartphone. It has a phone_book table. It has the columns id, first_name, last_name and phone.

Delete all contacts with the first name of Jonathan and last name of Luna.

3 Answers

Teacher Russell
Teacher Russell
16,873 Points

I just stumbled on to this question by accident, and don't see the stage you're at, but sounds like the query would go something like DELETE * FROM phone_book WHERE first_name = "Jonathan" AND last_name = Luna; ?

thanks it worked !

Teacher Russell
Teacher Russell
16,873 Points

No problem, glad I could help. Do you understand how it works now?

Yes, I do. I need some help in another course could you look at it? The entity framework basics course.

Teacher Russell
Teacher Russell
16,873 Points

I'm off to work now. Wish I could code and study all day. I'd love the chance to help, if no one else can before I get back. Lots of good folks here at Treehouse. If you're really stuck, take some time. Walk away, even if it's for a whole day or more. You'll figure it out, eventually. The information in the videos is no more important than the skill you develop while trying to solve the problem they've given us:) Happy to help anytime I can. Good luck!