wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DDL

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does "SQL" stand for?

a)

Structured Question Language

b)

Structured Query Language

c)

Simple Query Language

d)

Simple Question Language

2.

Less than or equal to?

a)

>=

b)

=>

c)

=<

d)

<=

3.

DDL means

(a)  

4.

DML

(a)  

5.

______________ constraint prevents NULL values

a)

UNIQUE

b)

NOT NULL

c)

NULL

d)

FOREIGN KEY

6.

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

a)

TRUE

b)

FALSE

7.

Select DDL commands from among the options...

a)

SELECT

b)

ALTER

c)

DROP

d)

DELETE

8.

The restrictions or conditions applied on data are known as (a)  

9.

The primary key of a table which is present in another table for referencing is known as (a)  

10.

The command which changes the structure of a table is (a)  

11.

Which constraint(s) can be used to make sure that the column is not left empty?

a)

NOT NULL

b)

UNIQUE

c)

PRIMARY KEY

d)

ALL THE ABOVE

12.

1.Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?

a)

a) Data Definition Language(DDL)

b)

b) Data Manipulation Language(DML)

c)

c) DDL and DML

d)

d) None of the Mentioned

13.

Write the correct SQL statement to create a new table called Persons

ـــــــــــــــــــــــــ (

PersonID int,

LastName varchar(255),

FirstName varchar(255),

Address varchar(255),

City varchar(255)

);

(a)  

14.

Write the correct SQL statement to create a new database called testDB


ــــــــــــــــــــــــــــــــــــــــــــــــــ ;

(a)  

15.

Add a column of type DATE called Birthday


ALTER TABLE Persons

ــــــــــــــــــــــــــــــ ;

(a)