wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQL & Normalisation

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

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

a)

Update

b)

Amend

c)

Alter

d)

Modify

2.

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

a)

Remove

b)

Cancel

c)

Delete

d)

Eradicate

3.

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

a)

Add To

b)

Update To

c)

Add Into

d)

Insert Into

4.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

5.

What is the correct order of clauses in a SQL statement?

a)

SELECT, FROM, ORDER BY, WHERE

b)

SELECT, FROM, WHERE, ORDER BY

c)

SELECT, WHERE, FROM, ORDER BY

d)

WHERE, FROM, SELECT, ORDER BY

6.

What is a field?

a)

A collection of information

b)

A single item of information

c)

A list of information

d)

A group of records

7.
What does Normalisation allow a database designer to do?
a)
Design their database efficiently, removing the chance of redundancy and inaccuracies. 
b)
Remove additional records from the tables. 
c)
Add as much data as they like. 
d)
Draw an ERD. 
8.

Which of the following is NOT a requirement of 1NF?

a)

It should only have single (atomic) valued attributes/columns.

b)

a Primary Key

c)

One item of data per column in one row (i.e. no repeating data)

d)

Data should be sorted in order

9.

Which of the following is NOT a requirement of 2NF?

a)

No One-Many relationships

b)

The data should be in 1NF

c)

No partial dependencies

d)

No One-Many relationships

10.

What is a key characteristic of Second Normal Form (2NF)?

a)

It requires that all non-key attributes are fully functionally dependent on the primary key

b)

It eliminates all duplicate columns from the table

c)

It requires that all tables have a single primary key

d)

It ensures that all data is stored in a single table

11.

What is an atomic field?

a)

A field that contains multiple items of data

b)

A field that is repeated

c)

A field that contains only one item of data

12.

A relation is in 1NF if it doesn't contain any ____________?

a)

Determinants

b)

Repeating groups

c)

Null values in primary key fields

d)

Functional dependencies

13.

A table is in 2NF if the table is in 1NF and what other condition is met?

a)

There are no functional dependencies.

b)

There are no null values in primary key fields.

c)

There are no repeating groups.

d)

There are no attributes that are not functionally dependent on the relation's primary key.

14.

Which of the following best defines referential integrity in the context of databases?

a)

A foreign key must correspond to a valid/existing primary key in another table.

b)

All data must be stored in a single table.

c)

Every table must have only one column.

d)

Data must be encrypted at all times.

15.

According to the rules of third normal form (3NF), what must all non-key attributes be dependent on?

a)

The key, the whole key, and nothing but the key.

b)

Any attribute in the table.

c)

Only the foreign key.

d)

The first attribute in the table.

16.

What is the solution when partial key dependencies exist in a table that is being normalised to 2NF?

a)

Remove these fields into a new table with a copy of the dependent part primary key.

b)

Delete all non-key attributes.

c)

Merge all tables into one.

d)

Remove the primary key from the table.

17.

Why is it important for a table in 3NF to have no transitive dependencies?

a)

To ensure that all data is stored in a single table.

b)

To prevent non-key attributes from depending on other non-key attributes, which improves data integrity.

c)

To allow for more duplicate data.

d)

To make the table easier to read.

18.

Which of the following statements best describes a table in First Normal Form (1NF)?

a)

All attributes are atomic and there are no repeating groups of attributes.

b)

All attributes are composite and there are repeating groups of attributes.

c)

All attributes are dependent on a non-key attribute.

d)

All attributes are foreign keys.