logo

Question detail

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

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 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));

Model answer

What a good answer should say

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

Explanation

Why this works

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

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.