logo

AQA A-Level Computer Science practice

Which SQL statement inserts a new row into the Product table?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Structured Query Language (SQL)

Exam-style question

Try this first

Which SQL statement inserts a new row into the Product table?.

  1. A.INSERT INTO Product (ProductID, Name) VALUES (3, 'Keyboard');
  2. B.ADD Product (ProductID, Name) VALUES (3, 'Keyboard');
  3. C.UPDATE Product SET (ProductID, Name) VALUES (3, 'Keyboard');
  4. D.CREATE Product (ProductID, Name) VALUES (3, 'Keyboard');

Answer and explanation

Concise answer

INSERT INTO Product (ProductID, Name) VALUES (3, 'Keyboard');

Why this is correct

INSERT INTO adds a new row. The column list identifies the columns being supplied, and VALUES supplies the corresponding data.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions