-
Syntaktisch solltest du den Join nehmen und nicht mehr die Komma-Variante, dann wird es auch klarer.
from datei3 c inner join datei2 b on c.key = b.key .....
Und folge Birgittas Tipp, die Where-Klausel in Exists mit genau denselben Bedingungen zu scheiben:
where exists (
select *
from datei3 c inner join datei2 b on c.S1=b.s2
Where a.k1=c.k1 and a.k2=c.k2 and a.k3=c.k3 and
a.jj=c.jj and a.mm=c.mm and a.tt=c.tt and
b.k1=c.k1 and b.k2=c.k2 and b.k3=c.k3 and
b.jj=c.jj and b.mm=c.mm and b.tt=c.tt and
a.S1=b.S1
)
Im Exists reicht ein "*", da die Feldliste nicht benötigt wird.
Similar Threads
-
By KB in forum IBM i Hauptforum
Antworten: 7
Letzter Beitrag: 28-04-16, 14:42
-
By loeweadolf in forum NEWSboard Programmierung
Antworten: 2
Letzter Beitrag: 01-06-06, 09:43
-
By Joe in forum IBM i Hauptforum
Antworten: 2
Letzter Beitrag: 01-04-03, 19:50
-
By infomio in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 17-12-01, 06:30
-
By schreibr in forum IBM i Hauptforum
Antworten: 4
Letzter Beitrag: 12-09-01, 08:22
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks