wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

The CREATE TABLE Statement

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What type of SQL statement does the command CREATE TABLE belong to?

a)

Data Control Language

b)

Data Definition Language

c)

Data Manipulation Language

d)

Transaction Control Language

2.

What statement is used to add, edit, and delete a column?

a)

ALTER COLUMN

b)

ALTER TABLE

c)

CREATE COLUMN

d)

CREATE TABLE

3.

Which clause(s) do(es) not work together with the ALTER TABLE statement? Select two.

a)

ADD COLUMN

b)

MODIFY COLUMN

c)

DROP COLUMN

d)

RENAME COLUMN

4.

What commands are used to view the structure of a table? Choose two.

a)

DESC

b)

DESCRIBE

c)

SELECT

d)

SHOW

5.

Which one is the correct way of deleting an index named prod_idx?

a)

DELETE prod_idx;

b)

DELETE INDEX prod_idx;

c)

DROP prod_idx;

d)

DROP INDEX prod_idx;

6.

The ALTER TABLE statement can only be used to remove a column?

a)

TRUE

b)

FALSE

7.

An index is created automatically when a primary key constraint is created.

a)

TRUE

b)

FALSE

8.

You can decrease the width of a character column.

a)

TRUE

b)

FALSE

9.

After creating a table, you can no longer add a foreign key constraint to a column.

a)

TRUE

b)

FALSE

10.

You can increase the precision of a numeric column.

a)

TRUE

b)

FALSE