11.23. Was im Geldautomat hätte passieren sollen

Geldautomat: LALELU.

Geldautomat: OH, ES IST F RAU EDITH HUMMEL. HALLO FR. EDITH HUMMEL ! (KONTO: 38221)

Fr. Hummel: Könnten Sie mir mitteilen, wie viel Geld ich habe?

Geldautomat: Denkt nach

(SELECT KONTOS TAND FROM GIROKONTO WHERE KONTO = 38221;
SELECT KONTOSTAND FROM SPARBUCH WHERE KONTO = 38221;)
DAS SIND DANN 1000 TALER AUF DEM GIROKONTO UND 30 AUF DEM SPARB UCH.

Fr. Hummel: Überweisen Sie die 1000 Taler bitte vom Girokonto auf das Sparbuch.

Geldautomat: DAS IST EINE ORDENTLICHE SUMME, FRAU HUMMEL. LOS GEHT'S: (GK_KONTOSTAND > 1000, GELD GENUG HAT SIE ALSO)

(1000 VOM GIROKON TO ABBUCHEN)

(EIN PIEPEN ......

GELDAUTOMAT UNTER NOTSTROMVERSORGUNG: ROLLBACK;

Geldautomat:

Geldautomat:

Geldautomat: ...

Get SQL von Kopf bis Fuß now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.