What is the primary purpose of the AVG function in SQL?
SQL Server Course for Beginners with 100+ examples - COUNT() Function

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To count the number of rows in a table
To calculate the sum of a numerical column
To calculate the average value of a numerical column
To find the maximum value in a column
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example with the employee table, what SQL command is used to display all records?
SELECT COUNT(*) FROM employee
SELECT salary FROM employee
SELECT * FROM employee
SELECT AVG(salary) FROM employee
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average salary calculated in the example with the employee table?
7283
6000
5000
8000
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you modify the AVG function to only consider employees with a salary above 6000?
By using a WHERE clause
By using an ORDER BY clause
By using a HAVING clause
By using a GROUP BY clause
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of using the AVG function with a WHERE clause filtering salaries greater than 6000?
It calculates the average of salaries less than 6000
It calculates the average of all salaries
It returns an error
It calculates the average of salaries greater than 6000
Similar Resources on Quizizz
2 questions
SQL Server Course for Beginners with 100+ examples - AND Operator

Interactive video
•
University
6 questions
SQL Server Course for Beginners with 100+ examples - PRIMARY KEY Constraint

Interactive video
•
University
6 questions
SQL Server Course for Beginners with 100+ examples - MIN() Function

Interactive video
•
University
6 questions
Microsoft SQL Server Development for Everyone - SQL COUNT Aggregate Function

Interactive video
•
University
6 questions
Complete SAS Programming Guide - Learn SAS and Become a Data Ninja - Summary Functions

Interactive video
•
University
2 questions
Microsoft SQL Server Development for Everyone - SQL AVG Aggregate Function

Interactive video
•
University
2 questions
SQL Server Course for Beginners with 100+ examples - WHERE Clause in SQL

Interactive video
•
University
6 questions
SQL Server Course for Beginners with 100+ examples - AND Operator

Interactive video
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade