wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AQA GCSE Databases and SQL

Total questions: 14

Worksheet time: 13mins

Name
Class
Date
1.

What is a Primary Key?

a)

A unique field within a table that ensures all records are unique

b)

A field that appears in multiple tables in order to join them together

c)

A unique field that is used to link together all the records in a table

d)

A common field that all tables include

2.

​ (a)   firstName, lastName, age ​ (b)   Students

​ (c)   yearGroup = "11"

Choose from the below words
SELECT
FIND
RETURN
LOCATE
FROM
WHERE
WHILE
WHICH
3.

Select the correct command to join two tables togehter

a)

WHERE Student.ID = Exam.ID

b)

WHERE Student.ID != Exam.ID

c)

WHERE Student = Exam

d)

WHERE Student.ID IS Exam.ID

4.

SQL Stands for

a)

Structured Query Language

b)

Static Query Language

c)

Structured Question Language

d)

Sample Query Language

e)

Structure Question Language

5.

Label The Primary and Foreign Keys

6.

What does the Orange represent on the following image?

a)

A Field

b)

A Record

7.

What does the Blue represent on the following image?

a)

A Field

b)

A Record

8.

Click on all the fields that would be returned by the following statement:

SELECT FirstName, LastName, DatePresented FROM Member, Award

9.

The field that joins two tables together is the (a)   key

10.

State two benefits of using relational databases

a)
Reduces data redundancy
b)

Less information to read

c)
Reduces data inconsistency
d)

Faster at retrieving information

e)

Can store more information

11.
INSERT INTO ​ (a)  
​ (b)   (5, 'Alina', 'Ahmed', '2020-11-30')
Choose from the below words
Member
Members
Award
Awards
VALUES
DATA
WHERE
LIKE
12.

What is the difference between a relational and a flat file database?

a)
Relational databases store data in a single table without relationships.
b)
Flat file databases can handle complex queries like relational databases.
c)
Relational databases support relationships and complex queries, while flat file databases store data in a single table without relationships.
13.

Select the correct query from the list below

a)

DELETE FROM Customers

WHERE name = "Mr Reid";

b)

DELETE * FROM Customers

WHERE name = "Mr Reid"

c)

DELETE name FROM Customers

WHERE name = "Mr Reid"

14.

Reorder the following

a)

SELECT FirstName, LastName, OrderDate, OrderNumber

b)

FROM Customers, Orders

c)

WHERE Customers.CustomerID = Orders.CustomerID

d)

AND OrderDate = "Jan 2025"

e)

ORDER BY OrderNumber ASC

1)
2)
3)
4)
5)