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

Database schema

Toon per klant (klantnummer) hoeveel pizza’s hij of zij in totaal heeft besteld (over alle bestellingen samen). Noem de kolom totaal_aantal.

Bekijk de tabel bestelling
bestelcode klantnummer ...
1224...
2427...
3413...
4323...
5279...
6199...
7323...
8330...
9372...
10472...
.........
Bekijk de tabel besteldePizza
besteldepizzacode bestelcode aantal ...
111...
211...
311...
423...
522...
623...
721...
823...
931...
1032...
............

Tip: gebruik een JOIN om tabel besteldepizza te koppelen aan tabel bestelling.