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
↧