Versuch mal sowas: Code: With x as (Select distinct PersNr From YourTable Where Art = 100) Select a.* From YourTable a Exception Join x on a.PersNr = x.PersNr; Birgitta
With x as (Select distinct PersNr From YourTable Where Art = 100) Select a.* From YourTable a Exception Join x on a.PersNr = x.PersNr;
Birgitta Hauser Anwendungsmodernisierung, Beratung, Schulungen, Programmierung im Bereich RPG, SQL und Datenbank IBM Champion seit 2020 - 5. Jahr in Folge Birgitta Hauser - Modernization - Education - Consulting on IBM i
Vielen Dank für die schnelle Antwort. Beim Auführen erhalte ich die Fehlermeldung: Qualifikationsmerkmal für Spalte oder Tabelle X nicht definiert. Mein SQL sieht so aus: PHP-Code: With x as (Select distinct papnr From sapedv/pa2001 Where PAAWAR = '0200') Select * From sapedv/pa2001 a Exception Join y on a.papnr = x.papnr
With x as (Select distinct papnr From sapedv/pa2001 Where PAAWAR = '0200') Select * From sapedv/pa2001 a Exception Join y on a.papnr = x.papnr
Vielen Dank! Hat funktioniert.
Foren-Regeln
Bookmarks