@ukulele meint sowas:
Code:
Select a.Adressenr,
k.Komart,
k.Nummer,
l.Komart,
l.Nummer,
g.Komart,
g.Nummer
From reladresse a
Left Join relkomm k On a.Adressenr = k.Adressenr And k.komart = 1
Left Join relkomm l On a.Adressenr = l.Adressenr And l.komart = 2
Left Join relkomm g On a.Adressenr = g.Adressenr And g.komart = 3
.
.
.