Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

How do i write qualify rank() over (partition.....question - response (3) by dnoeth

$
0
0
Seems like Infomix desn't support OLAP functions, yet. You can rewrite it using old style SQL, but performance will be horrible: select rank() over (partition by a order by b) as rnk from tab qualify rnk < 5 select (select count(*) + 1 from tab as t2 where t2.a = t.a and t2.b < t.b) as rnk from tab as t where rnk < 5Dieter

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>