logo

Question detail

Which statement changes the Name value to 'Rita' for the row whose StudentID is 12?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Structured Query Language (SQL)

Exam-style question

Try this first

Which statement changes the Name value to 'Rita' for the row whose StudentID is 12?.

  1. A.UPDATE Student SET Name = 'Rita' WHERE StudentID = 12;
  2. B.CHANGE Student Name = 'Rita' WHERE StudentID = 12;
  3. C.INSERT INTO Student SET Name = 'Rita' WHERE StudentID = 12;
  4. D.SELECT Student SET Name = 'Rita' WHERE StudentID = 12;

Model answer

What a good answer should say

  • UPDATE Student SET Name = 'Rita' WHERE StudentID = 12;

Explanation

Why this works

UPDATE changes existing data. SET specifies the new value, while WHERE identifies the row to change.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.