wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz: Database Concepts and SQL

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

What type of relationship is described as each record in the first table being related to one and only one record in the second table, and vice versa?

a)

One-to-Many (1:N)

b)

Many-to-Many (M:N)

c)

One-to-One (1:1)

d)

None

2.

In a one-to-many relationship, how is data related between the first and second tables?

a)

Each record in the first table can be related to one or more records in the second table.

b)

Each record in the second table is related to only one record in the first table.

c)

Each record in both tables can be related to multiple records in the other table.

3.

In a many-to-many relationship, what is used to represent the relationship between records in the first and second tables?

a)

Foreign Keys

b)

Primary Keys

c)

Intermediary Table

4.

Which SQL command is used to retrieve specific data from a database?

a)

SELECT

b)

UPDATE

c)

INSERT

5.

What SQL command is used to add new records to a table?

a)

INSERT

b)

UPDATE

c)

DELETE

6.

What type of constraint is used to ensure each record in a table has a unique identifier?

a)

Foreign Key

b)

Primary Key

c)

Unique Constraint

7.

Which SQL command is used to define the structure of a new table?

a)

CREATE TABLE

b)

ALTER TABLE

c)

DROP TABLE

8.

Which SQL clause is used to group rows based on specified columns?

a)

GROUP BY

b)

ORDER BY

c)

HAVING

9.

What SQL function is used to count the number of rows in a result set?

a)

SUM

b)

AVG

c)

COUNT