logo

AQA A-Level Computer Science practice

Which SQL statement defines a table named Book with an integer BookID column and a text Title column?

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 defines a table named Book with an integer BookID column and a text Title column?.

  1. A.CREATE TABLE Book (BookID INT, Title VARCHAR(100));
  2. B.DEFINE Book (BookID INT, Title VARCHAR(100));
  3. C.INSERT TABLE Book (BookID INT, Title VARCHAR(100));
  4. D.CREATE Book TABLE (BookID INT, Title VARCHAR(100));

Answer and explanation

Concise answer

CREATE TABLE Book (BookID INT, Title VARCHAR(100));

Why this is correct

CREATE TABLE defines a new table. Each column is given a name and a data type inside the brackets.

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