wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

REVIEWER 1-23

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.
a)

Cohort

b)

Relationally dependent

c)

Deterministic

d)

Functionally dependent

e)

Compositional

2.

Which key uniquely identifies a row in a table?

a)

Foreign

b)

Local

c)

Primary

d)

Superkey

3.

Which statement creates a composite key?

a)

b)

c)

d)

4.

Which command should you use to give a user permission to read the in a table?

a)

ALLOW SELECT

b)

LET READ

c)

PERMIT READ

d)

GRANT SELECT

5.

You need to enable a new employee to authenticate to your database. Which command should you use?

a)

Allow user

b)

Create user

c)

Add user

d)

Insert User

e)

Alter User

6.

Which keyword can be used in a CREATE TABLE statement?

a)

ORDER BY

b)

DISTINCT

c)

GROUP BY

d)

UNIQUE

7.
a)

an error stating that NULL values are not allowed

b)

a new row in the table

c)

an error stating that duplicate IDs are not allowed

d)

a syntax error

8.

You need to store product names that vary from three to 30 characters. You also need to minimize the amount of storage space that is used. Which data type should you use?

a)

VARCHAR(3, 30)

b)

CHAR (3, 30)

c)

VARCHAR (30)

d)

CHAR (30)

9.

One reason to create a stored procedure is to:

a)

Improve performance

b)

Minimize Storage space

c)

Bypass case sensitivity requirements

d)

Give the user control of the query logic

10.

Which permission does a user need in order to run a stored procedure?

a)

EXECUTE

b)

ALLOW

c)

CALL

d)

RUN

11.

You are writing an SQL statement to retrieve rows from a table. Which data manipulation language (DML) command should you use?

a)

READ

b)

SELECT

c)

OUTPUT

d)

GET

12.

Which constraint ensures a unique value in the ID column for each customer?

a)

DISTINCT

b)

FOREIGN KEY

c)

SEQUENTIAL

d)

PRIMARY KEY

13.

The component that holds information for a single entry in a table is called a;

a)

Data type

b)

Row

c)

Column

d)

View

14.
a)

0

b)

1

c)

2

d)

3

e)

4

15.

You are writing a select statement to find every product whose name contains a specific character. Which keyword should you use in your where clause?

a)

FIND

b)

BETWEEN

c)

INCLUDES

d)

LIKE

16.
a)

The first order for CustomerID 209 is deleted from the Order table.

b)

All orders for CustomerID 209 are deleted from the Order table, and CustomerID 209 is deleted from the Customer table.

c)

All orders for CustomerID 209 are deleted from the Order table.

d)

CustomerID 209 is deleted from the Customer table

17.

You need to populate a table named EmployeeCopy with data from an existing table name Employee. Which Statement should you use?

a)

b)

c)

d)

18.
a)

Subquery

b)

Union

c)

Outer join

d)

Cartesian product

19.

Which keyword would you use in a select statement to return rows that meet a specific condition?

a)

WHERE

b)

UNION

c)

ORDER BY

d)

FROM

20.
a)

b)

c)

d)

21.
a)

1

b)

2

c)

3

d)

4

22.

Which command should you use to remove a table from a database?

a)

REMOVE TABLE

b)

UPDATE TABLE

c)

DROP TABLE

d)

DELETE TABLE

23.
a)

Complete join

b)

Partial join

c)

Inner join

d)

Outer join

24.

Data in a database is stored in:

a)

Tables

b)

Queries

c)

Data types

d)

Stored procedures

25.
a)

All rows in the table will be deleted

b)

All rows containing a NULL value in the FirstName column will be deleted

c)

You will receive an error message

d)

All rows and the table definition will be deleted

26.

You need to establish a set of permissions that you can routinely assign to new users. What should you create?

a)

Resource

b)

Group

c)

List

d)

Role

27.

Which database term is used to describe the process of applying a backup to a damaged or corrupt datebase?

a)

Recover

b)

Restore

c)

Commit

d)

Attach

28.

You need to disable User1's access to view the data in the Customer table. Which statement should you use?

a)

b)

c)

d)