nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: Abfrageproblem

Von: Stephan Dreisbach (muelleimer15@gmx.de) [Profil]
Datum: 03.08.2008 11:29
Message-ID: <lhua945ec0noh6dh6nc96l01e3andd54aq@4ax.com>
Newsgroup: de.comp.datenbanken.mysql
Dominik Echterbruch <news_de@crosslight.de> schrieb:


>SELECT a.Name, a.SNr, a.Art, a.Ablauf
>FROM tabelle a
>LEFT JOIN tabelle b ON b.SNr = a.SNr AND a.Art = "K" AND b.Art =
"S"
>WHERE b.SNr IS NULL AND TO_DAYS(a.Ablauf) - TO_DAYS(NOW()) < 15;
>
>Klar, wieso das funktioniert?

Danke, ich wusste nicht, dass man mit join die gleiche Tabelle
verknüpfen kann.

--
Stephan


[ Auf dieses Posting antworten ]

Antworten