wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQL fun!

Total questions: 11

Worksheet time: 22mins

Name
Class
Date
1.

How many records are in this table?

a)

7

b)

6

c)

5

d)

4

2.

How many fields are there?

a)

4

b)

5

c)

6

d)

7

3.

Which field is the key field?

a)

ID

b)

Name

c)

HighScore

d)

Competition

4.

What is the ID of the records that are returned when the SQL statement "SELECT * FROM Gymnasts WHERE Name='Xavier'"?

a)

0001

b)

0002

c)

0003

d)

0004

e)

0005

5.

What is the ID of the records that are returned when the SQL statement "SELECT * FROM Gymnasts WHERE HighScore > 8.4"?

a)

0001

b)

0002

c)

0003

d)

0004

e)

0005

6.

Which of the following statements will return the most records?

a)

SELECT * FROM Gymnasts WHERE HighScore > 8.0

b)

SELECT * FROM Gymnasts WHERE Competition LIKE R%

c)

SELECT * FROM Gymnasts WHERE Competition LIKE %o%

d)

SELECT * FROM Gymnasts WHERE Name LIKE %i%

7.

Which of the following is NOT a SQL command?

a)

SELECT

b)

FROM

c)

LIKE

d)

SIMILAR

e)

DISTINCT

8.

How many records are there in this table?

a)

6

b)

7

c)

9

d)

42

9.

How many fields are there in this table?

a)

6

b)

7

c)

9

d)

42

10.

How many records would be returned by the following SQL "SELECT * FROM songs WHERE TimesPlayed >=3

a)

0

b)

2

c)

3

d)

4

11.

How many records would be returned by the following SQL "SELECT * FROM songs WHERE Length < 3 AND Protected = True"?

a)

0

b)

2

c)

3

d)

4