Avsnitt 1. Kapitel 39
single
The SUM() Function
Svep för att visa menyn
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.
Uppgift
Swipe to start coding
Write an SQL query that returns the sum of the surfacearea of countries from 'Europe'.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 39
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal