Re: General approach to "Top-x-items" selection?
Date: 1995/08/13
Message-ID: <40k4h6$ca3_at_ns.concourse.com>#1/1
Martin Smith <MikeS_at_cpcug.org> wrote:
>We have a common requirement to produce reports on the top x items by
>some value within categories (and sometimes subcategories).
>Example--What are the top 10 items (in 1994 value) imported from each
>country in the world?
>I can't believe this is not a common need (not the problem, but
>simliar ones like the top 10 salesmen in each region or the top
>10 salaries in each department.)
>Is there a general way to accomplish this using Oracle?
Martin,
I'm sure some more experienced SQL'r could put together an interesting
Pattern on this, but here's my shot... I haven't tried this, but
couldn't you:
Just an untested guess...
Regards,
Eric
Eric S. Kramer
Huntington Bancshares Incorporated
Columbus, OH USA
(614) 480-5088
Received on Sun Aug 13 1995 - 00:00:00 CEST