🎙 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 2 of 10

What does UPDATE students SET city = 'Pune'; do?

What does UPDATE students SET city = 'Pune'; do?

  1. A.Nothing — WHERE is required
  2. B.Sets city to Pune for EVERY row
  3. C.Updates only the first row
  4. D.Gives an error
Answer & explanation

Correct answer: Sets city to Pune for EVERY row

Without WHERE, UPDATE changes 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 →