wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL Statement Part 3

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

What sql statement is used for finding the highest possible number in a field?

a)

MIN

b)

MAX

c)

AVERAGE

d)

SUM

2.

Which of the following is the right way of using MIN SQL statement?

a)

SELECT (Salary)

FROM Teachers

MIN

b)

SELECT (Salary) MIN

FROM Teacher

c)

SELECT MIN (Salary)

FROM Teacher

d)

SELECT (Salary)

FROM MIN Teacher

3.

What SQL statement is being in finding students records that doesn't have information?

a)

Is Null

b)

Null

c)

Missing

d)

Blank

4.

What SQL statement is used in adding all the records in a specific field?

a)

AVG

b)

MAX

c)

MIN

d)

SUM

5.

This SQL statement is used to find the number of values in the specified field.

a)

SUM

b)

MAX

c)

COUNT

d)

AVG

6.

Which of the following is the right way of using the SQL statement MAX?

a)

SELECT MAX (Salary)

FROM Teacher

b)

SELECT (Salary) MAX

FROM Teacher

c)

SELECT (Salary)

FROM MAX Teacher

d)

SELECT (Salary)

FROM Teacher MAX

7.

Which SQL statement is used in computing for the average of the salary of the teacher?

a)

AVG

b)

MIN

c)

MAX

d)

SUM

8.

Which of the following is the right way of using Is Null SQL statement?

a)

SELECT Age

FROM Students

Where Age Is Null

b)

SELECT Is Null Age

FROM Students

c)

SELECT Age

FROM Is Null Students

d)

SELECT Age

FROM Students

Where Is Null Age

9.

Which of the following is the right way of using the SUM SQl statement?

a)

SELECT (Salary)

FROM Teachers SUM

b)

SELECT SUM (Salary)

FROM Teachers

c)

SELECT (Salary)

FROM SUM Teachers

d)

SELECT (Salary) SUM

FROM Teachers

10.

Which of the following is the right way of using AVG SQL statement?

a)

SELECT AVG (Salary)

FROM Teachers

b)

SELECT (Salary) AVG

FROM Teachers

c)

SELECT (Salary)

FROM AVG Teachers

d)

SELECT (Salary)

FROM Teachers AVG