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

single

bookThe SUM() Function

Svep för att visa menyn

SUM() returns the total of all the values in a given column.

Here's an example:

123
SELECT SUM(population) FROM country WHERE continent='Asia';
copy

The SUM() function calculates the total population of all Asian countries found in the country table.

Uppgift

Swipe to start coding

Write an SQL query that returns the sum of the surfacearea of countries from 'Europe'.

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 39
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