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 trialOskar Pihlak
2,094 PointsDelete all contacts with the first name of Jonathan and last name of Luna.
Delete all contacts with the first name of Jonathan and last name of Luna. help
Craig Garner
25,732 PointsPost code :)
Steven Parker
231,248 PointsI don't think you can use IS the way Jonathan is suggesting.
But his code might work if you substitute the word "LIKE" for "IS".
Craig Garner
25,732 PointsThat's true. It also says with the first... not like or containing the first.
delete * from contacts where first_name="Jonathan" and last_name="Luna";
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsHi Oskar,
Could you link to the question or code challenge? I don't know for example if there are 2 fields for name or if they use one or what the name of your table is.
Andrew will have used the syntax you need somewhere in the preceding video.
you'll need to use the WHERE clause somewhere in your answer.
Here's an example for you to try in the mean time.
DELETE FROM contacts WHERE first_name IS "Jonathan%" AND last_name IS "%Luna";