Autor Beitrag
Der Schreckliche
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Windows 7
Delphi XE5
BeitragVerfasst: So 24.06.07 18:12 
Hallo zusammen,

ich möchte mehrere Tabellen verknüpfen und habe in jeder Tabelle ein Datenfeld mit gleichen Name und Inhalt. Ich finde aber kein Delphi Befehl der ist übernimmt.

Hatte mit das so ähnlich gedacht.

AdoDataSet2. ?????? := AdoDataSet1. ??????

Oder bin total auf dem Holzweg


Gruß
Der Schreckliche
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 24.06.07 18:13 
Meinst du einen Join?

_________________
Markus Kinzler.
Der Schreckliche Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Windows 7
Delphi XE5
BeitragVerfasst: So 24.06.07 18:27 
Wen´s hilft!
Dachte mir das auch schon, nur kapiert den Join nicht so genau
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 24.06.07 18:31 
Wie sehen die beiden Abfragen aus?
Oder meinst du Master/Detail?

_________________
Markus Kinzler.
Der Schreckliche Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Windows 7
Delphi XE5
BeitragVerfasst: So 24.06.07 18:34 
Master/ Detail hab ich jetzt noch nicht gefunden als Lösung.
also ich habe so vor
Beim DBNavigator, OnClick soll jede Tabelle den Datensatz anzeigen bei dem IDGeraet gleich sind.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 24.06.07 18:37 
In einer Datenmenge?

_________________
Markus Kinzler.
Der Schreckliche Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Windows 7
Delphi XE5
BeitragVerfasst: So 24.06.07 18:46 
Langsam glaub ich versteh mein Problem nicht mal selber!

also wenn jede Tabelle eine Datenmenge ist dann habe ich mehrere Datenmengen oder?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 24.06.07 18:54 
Ja willst du die beiden Tabellen getrennt anzeigen?

_________________
Markus Kinzler.
Der Schreckliche Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Windows 7
Delphi XE5
BeitragVerfasst: So 24.06.07 18:58 
Ja jede Tabelle hat eine eigene Page. Es sind 1:1 und 1:n Verbindungen möglich.
Zur Zeit sind es 5 unterschiedliche Tabellen und ich befürchte es werden mit der Zeit mehr.
Der Schreckliche Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Windows 7
Delphi XE5
BeitragVerfasst: So 24.06.07 19:00 
Hab mir jetzt mal soetwas gebastelt, klappt aber nicht.

SELECT * FROM Stammdaten left JOIN TechnischeDaten
ON Stammdaten.lfd = TechnischeDaten.lfd
WHERE TechnischeDaten.lfd = Stammdaten.lfd