Search Header Logo

MySQL Aggregate Functions Quiz

Authored by Naresh K Rana

Computers

12th Grade

Used 2+ times

MySQL Aggregate Functions Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an aggregate function in MySQL?

COUNT()

AVG()

SUM()

ROUND()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The function used to find the total of values in a numeric column is:

MAX()

TOTAL()

SUM()

COUNT()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which aggregate function returns the number of rows in a table or result set?

SUM()

AVG()

COUNT()

LENGTH()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns the largest value in a column?

MAX()

UPPER()

BIGGEST()

LARGE()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The function used to find the smallest value from a column is:

LOWER()

SMALL()

MIN()

LEAST()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The AVG() function in MySQL is used to:

Add all numeric values

Find average of numeric values

Find total number of rows

Return distinct values

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following SQL statements will display the total salary from the ‘Employee’ table?

SELECT TOTAL(salary) FROM Employee;

SELECT SUM(salary) FROM Employee;

SELECT COUNT(salary) FROM Employee;

SELECT ADD(salary) FROM Employee;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?