Willst Du folgendes Ergebnis?
F1 F2, Anz, Summe
A B 10 24
A B 14 24
Wenn ja, würde ich das mit einer zusätzlichen Common Table Expression lösen:
Code:With x as (Select f1, f2, count(*) as anz from x Group By F1, F2) Select F1, f2, Anz, Sum(Anz) Over() from x;
![[NEWSboard IBMi Forum]](images/duke/nblogo.gif)



Mit Zitat antworten
Bookmarks