Drop links or images here to add them to the editor.

Database schema

Met SUM(kolomnaam) tel je alle waarden in een kolom bij elkaar op:

SELECT SUM(basisprijs) AS totaal_waarde
FROM pizza;
-- Resultaat: 293.5

Verwerkingsopdracht – Totale korting

Bereken de totale korting van alle bestellingen in de tabel bestelling. Noem de kolom totaal_korting.

Bekijk de tabel bestelling
bestelcode korting ...
10.0...
20.0...
30.0...
40.0...
50.0...
.........
1042.5...
.........
1993.5...
.........