Autor Beitrag
Tschorre
Hält's aus hier
Beiträge: 9



BeitragVerfasst: Fr 06.10.06 07:58 
Hallo,

ich hab eine Tabelle, die zweimal eine Verknüpfung auf ein Keyfeld einer anderen Tabelle hat.

Tabelle 1 - PLZ_1, PLZ_2

Mache einen left join auf den Key einer Tabelle, in der alle PLZ abgespeichert sind, die sieht so aus:

Tabelle 2
Key Integer
PLZ Varchar(5)
Ort Varchar(50)

Wenn ich jetzt eine left join mache, zeigt er mir in PLZ_1 und PLZ_2 den gleichen Inhalt, obwohl sie unterschiedlich sind. Was mach ich falsch? Wenns geht, bitte ein Beispiel.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 06.10.06 09:20 
Zeig mal deinen Abfrage

_________________
Markus Kinzler.
Jailbird
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 127

Windows XP Pro SP2
Delphi 7 Professional
BeitragVerfasst: Fr 06.10.06 10:26 
Du musst Tabelle2 zwei Mal joinen (für jedes PLZ-Feld einzeln)

_________________
Jailbird