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 Modifying Data with SQL Deleting Data From a Database Deleting Data With SQL

Hasan Ali
Hasan Ali
2,039 Points

Not sure where i am going wrong

can anyone help me i do not know where I am going wrong.

Randy Layne
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Randy Layne
Treehouse Moderator

Hi Hasan!

Would you mind posting what you've tried and we'll be more than happy to point you in the right direction! ;)

As a general info thing, make sure you are checking that the price is greater than 11 and not products

3 Answers

Randy Layne
seal-mask
MOD
.a{fill-rule:evenodd;}techdegree seal-36
Randy Layne
Treehouse Moderator

Hi saadmeah!

When looking at your answers for Q2 and Q3 I noticed that the quotation marks being used are different between the two. Sure enough when I paste in your answer for Q3 as is, it fails, but if I paste it in and then change the quotation marks it works!

Hope this helps!

Hi!

Q1: DELETE FROM products WHERE price >= 11;

Q2: DELETE FROM users WHERE username = "poley_hands";

Q3: DELETE FROM phone_book WHERE first_name = “Jonathan” AND last_name = “Luna”;

Q1 and Q2 are correct, but for Q3 I can’t seem to get it right.

Thank you Randy :)

Q3 is now passed!