select count(*) from gdidivf/iim where iyiss>0
32,162

SELECT rank_nbr, iprod,IYISS
FROM
(select iprod, iyiss,
rank() over (order by iyiss desc) as rank_nbr
from gdidivf/iim) as ranked_item
where rank_nbr <
(select count(*) from gdidivf/iim where iyiss>0)*.25 + 1
ORDER BY rank_nbr
RANK_NBR Item Number YTD Issues
1 295060 14170503.619
2 364304 9739872.000
3 320187 6943424.000
4 135074-2 5848341.000
5 320183 5724104.000
6 135075-1 5134200.245
...
8,033 ISC0610-W 600.000
8,033 122675-1-B 600.000
8,033 809800224-4799 600.000
8,033 280252.11.1 600.000

Rob Berendt

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].