Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does SQL stand for?

a)

SQL

b)

Structured Query Language

c)

Static Query Language

d)

Structure Query Language

2.

What is the purpose of SQL?

a)

To communicate with a game

b)

To communicate with aliens

c)

To communicate with a database

d)

To communicate with a base

3.

What is the select statement used for?

a)

It is used to select a database

b)

It is used to select data from a database

c)

It is used to select a website

d)

It is not a SQL statement

4.

What is the FROM statement used for?

a)

It is used to select a database

b)

It is not a SQL statement

c)

It is used to select a website

d)

It is used to specify which table to select data from.

5.

What would this SQL query display? SQL * FROM Pupils

a)

It would display pupils who have a * in their name.

b)

It is not a SQL statement.

c)

It would display all records from the Pupils table.

d)

It would not display any pupils.

6.

What would this SQL query display? SQL Forename, Surname FROM Pupils

a)

It would only display pupils forename and surname from the Pupils table.

b)

It is not a SQL statement.

c)

It would display all pupils forenames from Pupils table.

d)

It would not display any pupils.

7.

Which SQL query would display all pupils surnames and registration class?

a)

SELECT * FROM Pupils

b)

SELECT * FROM Pupils WHERE surname, regiClass

c)

SELECT surname, regiClass

d)

SELECT surname, regiClass FROM Pupils

8.

Which SQL query would display all pupils details who have the surname Smith?

a)

SELECT surname FROM Pupils WHERE Smith

b)

SELECT * FROM Pupils WHERE surname = Smith

c)

SELECT * FROM Pupils WHERE surname = "Smith"

d)

SELECT * FROM Pupils

9.

Which SQL query would display all pupils who are older than 12?

a)

SELECT * FROM Pupils WHERE age > 12

b)

SELECT * FROM Pupils WHERE age < 12

c)

SELECT * FROM Pupils WHERE age > "12"

d)

SELECT * FROM Pupils WHERE age >= 12

10.

Which SQL query would display all pupils who 12 years old or order and have the surname Smith?

a)

SELECT * FROM Pupils WHERE Age >= 12 AND Surname = "Smith"

b)

SELECT * FROM Pupils WHERE Age >= 12 AND Surname = Smith

c)

SELECT * FROM Pupils WHERE Age > 12 AND Surname = "Smith"

d)

SELECT * FROM Pupils