× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Try something like this:

With x as (Select Library, Object, Size,
Dense_Rank() Over(Partition By Library Order By Size Desc)
as Rank
From YourFile)
Select Library, Object, Size
Form x
Where Rank <= 10
Order By Library, Size Desc, Object;;


Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"


-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von rob@xxxxxxxxx
Gesendet: Monday, 20. September 2010 16:39
An: Midrange Systems Technical Discussion
Betreff: Some OLAP function perhaps?

I want to generate results like the following from a table with those
columns, however, the summary row does not exist. And, of the detail, I
only want the 10 largest rows per library.

Library Object Size
BIGLIB 456789
BIGLIB BIGOBJ 200000
BIGLIB MEDOBJ 100000
BIGLIB SMLOBJ 50000
...
MEDLIB 322457
MEDLIB BIGOBJ 150492
MEDLIB MEDOBJ 54329
MEDLIB SMLOBJ 12222
...
SMLLIB 105298
SMLLIB BIGOBJ 102201
SMLLIB MEDOBJ 49
SMLLIB SMLOBJ 2
...


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.