There is a very simple way to pull this off in DB2:
select row_a from table_a
where row_a in
(
select row_a
from
(
select row_a, rownumber() over(order by row_a) as row_number
from table_a
where row_b = 1 and row_c = 'abc'
) as temp
where row_number <= 5
)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.