2 messages in com.mysql.lists.mysql-deRe: von table1 nicht in table2
FromSent OnAttachments
Michael Borchers27 Apr 2006 06:52 
Barry27 Apr 2006 06:56 
Subject:Re: von table1 nicht in table2
From:Barry (Bar@flyerheaven.de)
Date:04/27/2006 06:56:39 AM
List:com.mysql.lists.mysql-de

Michael Borchers schrieb:

tab1 "kontakt" kontakt_id

tab2 "historie" historie_id kontakt_id

nun suche ich alle kontakte au tab1, die keinen eintrag in tab2 haben.

geht das mit nem join und dann historie.kontakt_id = NULL o.ä.?!

Fast richtig

LEFT JOIN tab1 ON id1 = id2 WHERE id2 IS NULL

greets