🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: SQL Basics: all 10 questions

Quiz: SQL Basics · Question 9 of 10

What does DELETE FROM students; (no WHERE) do?

What does DELETE FROM students; (no WHERE) do?

  1. A.Deletes every row but keeps the table
  2. B.Deletes the table
  3. C.Gives an error
  4. D.Deletes only the first row
Answer & explanation

Correct answer: Deletes every row but keeps the table

Without WHERE, DELETE affects all rows.

Can you get the rest right without peeking?

Take the timed Quiz: SQL Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →