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

single

bookThe SUM() Function

Glissez pour afficher le menu

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.

Tâche

Swipe to start coding

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

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 39
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt