blob: 6757745c54b53fd933ed175c5e9a6ffdfec7d4b4 [file] [log] [blame]
-- with the window clause
select sum(distinct a1) over w,
count(distinct a1) over w
from t1
window w as (partition by b1 order by c1 desc);