My requirement is like this.
I have two tables
BatXMIT - having details about batch jobs, CPU time and CPU cost
APPLINV - Having Jobgroups, application Ids and owners
I need to get TOP OWNERS by SUM(CPUtime) and SUM(CPU COST)
which can be done by orderby desc on the sum fields and fetch only 25 rows. I am able to get the result till here.
In addition to that I need to get "TOP 25" jobs under each Owner.
So it will be 25 * 25 rows.
Can someone help me with this?
Any pointers will be of more help.
Yes. I did that. But, the result is the TOP 25 jobs of all of them and not per individual.
Say for Owner ABC, 10 top jobs exists and for owner XYZ 15 jobs.
then my result is top 25 from the list of 10+15 jobs and not per owner!