Hallo Robi,

danke für die rasche Antwort. Ich bekomme aber eine Fehlermeldung wenn ich das statement absetze:

Code:
Qualifikationsmerkmal für Spalte oder Tabelle FILLGH_15 nicht defini
with a as                                                           
(select fldata from testfgn/fillgh_15                               
group by fldata                                                     
having count(*) > 1)                                                
select max(rrn(testfgn/fillgh_15)) from testfgn/fillgh_15           
where fldata in(                                                    
select fldata from a)
wobei mein feld fldata heißt und die datei eben fillgh_15