Seksjon 1. Kapittel 39
single
The SUM() Function
Sveip for å vise menyen
SUM() returns the total of all the values in a given column.
Here's an example:
123SELECT SUM(population) FROM country WHERE continent='Asia';
The SUM() function calculates the total population of all Asian countries found in the country table.
Oppgave
Swipe to start coding
Write an SQL query that returns the sum of the surfacearea of countries from 'Europe'.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 39
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår