Forum: Datenbanken
Delphi
by Leuselator,
17. Feb 2004
Jeweils 1 join eingespart:
SELECT S.*
FROM r_articleproduct AP
INNER JOIN r_tubestopper TS
ON TS.tube_id = AP.article_id
INNER JOIN stopper S
ON S.article_id = AP.article_id
Forum: Datenbanken
Delphi
by Leuselator,
17. Feb 2004
@ahachmann: Ich muß Abbitte leisten! Du hast Recht, was das Not Exists angeht.
Da hatte Ich einen Knoten im Kopf der in Richtung: "where id not in(...)" ging.
Sorry!
*AschekübelNimmtUndÜberKopfStülpt*
Gruß
Forum: Datenbanken
Delphi
by Leuselator,
17. Feb 2004
Wenn ich das ganze durch meine eigene HumanBrainSqlEngine laufen lasse, kommt das heraus:
SELECT A.*
FROM stopper A
INNER JOIN r_tubestopper B
ON B.stopper_id = A.article_id
INNER JOIN r_articleproduct C