Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn The AVG() Function | Aggregate Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Introduction to SQL (60/40)

bookThe AVG() Function

AVG() returns the average value of a certain column. Let's see an example:

12
SELECT AVG(population) FROM country;
copy

AVG() can also be used to find the average of a selected set of columns or rows that meet certain conditions. Here’s an example:

123
SELECT AVG(population) FROM country WHERE population < 4478500;
copy

1. What does the AVG() function return in SQL?

2. Which SQL clause can be used with AVG() to calculate the average for a subset of rows?

question mark

What does the AVG() function return in SQL?

Select the correct answer

question mark

Which SQL clause can be used with AVG() to calculate the average for a subset of rows?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

bookThe AVG() Function

Swipe to show menu

AVG() returns the average value of a certain column. Let's see an example:

12
SELECT AVG(population) FROM country;
copy

AVG() can also be used to find the average of a selected set of columns or rows that meet certain conditions. Here’s an example:

123
SELECT AVG(population) FROM country WHERE population < 4478500;
copy

1. What does the AVG() function return in SQL?

2. Which SQL clause can be used with AVG() to calculate the average for a subset of rows?

question mark

What does the AVG() function return in SQL?

Select the correct answer

question mark

Which SQL clause can be used with AVG() to calculate the average for a subset of rows?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 1
some-alt