7 messages in com.mysql.lists.mysql-deRe: n:m schon wieder,
FromSent OnAttachments
mhe11 Feb 2004 13:49 
Stefan Heinrichsen11 Feb 2004 15:13 
Hartmut Holzgraefe12 Feb 2004 02:26 
Sebastian Tobias Mendel genannt Mendelsohn12 Feb 2004 02:34 
Sebastian Tobias Mendel genannt Mendelsohn12 Feb 2004 02:36 
mhe12 Feb 2004 05:02 
Hartmut Holzgraefe12 Feb 2004 05:10 
Subject:Re: n:m schon wieder,
From:Stefan Heinrichsen (gelb@gmx.de)
Date:02/11/2004 03:13:32 PM
List:com.mysql.lists.mysql-de

Am Mi 11.02.04 um 22:49 CET schrieb mhe <mh@ltcgroup.de>: ^^^ Hähh?????

hihi,

ich habe tab1.id und tab2.id, diese habe ich mit tab3.id / tab3.tab1_id / tab3.tab2_id n:m

^^^^^^ Das brauchst du nicht!

verknuepft.

mich interessieren jetzt alle aus tab1, die nicht mit einem bestimmten element aus tab2 verknuepft sind ?

entweder stehe ich auf dem schlauch, bin bloed, doof, oder sonstewas, ich komme einfach nicht drauf,

Also das sind absolute Grundlagen ich kann dir nur empfehlen ein Buch zu kaufen wenn du etwas mehr mit Datenbanken machen willst oder zumindestens eine gutes Onlinetutorial.

Was du brauchst ist SELECT tab1.* FROM tab1, tab2, tab3 WHERE tab3.tab1_id=tab1.id AND tab3.tab2_id=tab2.id AND tab2.id!=XY

mfg stefan