Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära The AVG() Function | Section
SQL Fundamentals
Avsnitt 1. Kapitel 32
single

single

bookThe AVG() Function

Svep för att visa menyn

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
Uppgift

Swipe to start coding

Write an SQL query to retrieve the average value of a surfacearea column from the country table.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 32
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

some-alt