Kapoor interessiert sich

Unterrichtstipps

Rechnen mit allem, was bisher kam: SUM über eine Rechnung (Jahreseinkommen aller), Preis pro Stück (Preis durch Packungsgröße), Dreisatz für den Kilopreis (erst pro Gramm, dann mal 1000 – Smiths „three-sentences“) und die Ganzzahl-Falle noch einmal: Der Lamborghini kostet glatt 89900, also teilt SQLite 89900 / 120 ganzzahlig (749) – erst mit 120.0 kommt 749,17 heraus. Abschlussaufgabe: der Kilopreis der Lyoner.

*pock pock pock* - Commissioner Smith? May I enter?

Verdammt!

Commissioner, I want you run some analysis ASAP.

ASAP, I know, it means, äh … That is computer language!

Yes. That is English.

We need to know the accumulated yearly income of all citizens of Maulwurfstadt.

Well, also, how can you, I mean -

I will wait here until you are done. We are in urge.

*knirsch*

  1. The yearly income of all inhabitants together - this should just be one value.
    1 Datensatz
    ROUND(SUM(monatlichesEinkommen * 12), 2)
    135146831.68

    Here you are.

    Thanks. That was very quick! You are a good computer scientist!

    Oh, äh, well, I do, yes, ahm …

By the way – how many citizens have you checked by now?

Two! Daskalov and his son.

Two. And the other 1,185?

…

Perhaps you could help me out with some rather private issue?

Out?!

I plan to export some German goods to India. And, well …

Korb mit Klopapier, Lyonerwurst, Dishwasher-Tabs und Emmentaler

So - you buy them and take them to India?! Where is the problem?

You see, I am unsure about the level of prices. Would you mind to have a quick look at your database and tell me the price of some goods of which I am interested to export them to India? I already have made a list for you …

I will do my best …

*schrrrp … schrrrp*

Smith! Wenn du eh in der Warentabelle bist: Da steht ein Lambo drin. Gebraucht! Was kostet der im Monat, wenn ich ihn auf zehn Jahre abstottere?

Ich dachte, du kaufst den bei Lanzilotti?

Der ist pleite. Und ich bin degradiert. Also: zehn Jahre!

  1. Price of one roll of toilet paper (Die Packung steht in waren – Preis durch die Anzahl in der Packung.)
    1 Datensatz
    ROUND(preis / verkaufseinheitMenge, 2)
    10.54

    Very cheap! Excellent.

  2. Price of one single Dishwasher-Tab
    1 Datensatz
    ROUND(preis / verkaufseinheitMenge, 2)
    10.13

    Dreizehn Cent für so ein Ding. Und dafür fliegt der nach Indien.

  3. Price of 1kg Emmentaler (In verkaufseinheitMenge steht, wie viel Gramm in der Packung sind. Erst der Preis für ein Gramm, dann mal 1000.)
    1 Datensatz
    ROUND(preis / verkaufseinheitMenge * 1000, 2)
    113.96

    Puh. Das war ein richtiger Dreisatz.

  4. Ösals Lambo: der Preis geteilt durch 120 Monate. (Denk an Kowalskys Punkt null!)
    1 Datensatz
    ROUND(preis / 120.0, 2)
    1749.17

    Siebenhundertneunundvierzig im Monat! Das kann ich mir leisten!

    Als Hausmeister?

    … Wenn ich wieder befördert werde.

So, Mr. Kapoor, here are the results, but I tell you, it was not easy. I needed to do some three-sentences.

Pardon me?!

Nothing, nothing.

Ermittlungsauftrag:
Kapoors letzter Punkt: Price of 1kg Lyoner

In Kolkata, people pay three times as much for that! Excellent!

But now I have to go to the Cafeteria, excuse me please.

What a rude fellow … (ab)

10 Minuten später …