wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL DDL

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

SQL is

a)

Structured Query Language

b)

Simple Query Language

c)

Structured Question Language

d)

Structure Quality Language

2.

DDL means

(a)  

3.

DML

(a)  

4.

To remove a record from a table which SQL statement would you use?

a)

Remove

b)

Cancel

c)

Delete

d)

Eradicate

5.

In order to modify data in a database we would use which SQL statement?

a)

Update

b)

Amend

c)

Alter

d)

Modify

6.

Which statement is used to extract data from a database?

a)

Extract

b)

Get

c)

Open

d)

Select

7.

Which statement allows us to add a record to a table?

a)

Add To

b)

Update To

c)

Add Into

d)

Insert Into

8.

Less than or equal to?

a)

>=

b)

=>

c)

=<

d)

<=

9.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

10.

Which SQL statement would add a record to the database?

a)

INSERT INTO Designer VALUES ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

b)

INSERT VALUES ('SMI01', 'M Smith', 'mail@msmith.com', 01224123456') INTO Designer

c)

INSERT ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456') INTO Designer

d)

INSERT Designer INTO VALUES (''SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

11.

Where does the CREATE Command belong?

a)

DML

b)

DDL

c)

DCL

12.

It is a DML command that is used to display record.

a)

DISPLAY

b)

STRUCTURE

c)

WHERE

d)

SELECT

13.

Referential Integrity is

a)

System of rules

b)

System of data

c)

Table constraints

d)

is related to Primary key

14.

______________ constraint prevents NULL values

a)

UNIQUE

b)

NOT NULL

c)

NULL

d)

FOREIGN KEY

15.

A primary key can be NULL in the table? TRUE or FALSE

a)

TRUE

b)

FALSE