J
Jack Darsa
Hello ,
I need to calculate top values separated by groups.
The input table is like:
A B C
1 1 10
1 2 12
1 1 9
2 2 20
2 1 15
2 2 10
The group fields are A and B ,C contains the value to retrieve.
The result should be similar to:
A B C
1 1 10
1 2 12
2 1 15
2 2 20
The real table contains over half a million records and thousands of groups.
The number of groups varies with the content of data. A stop query will
solve the problem ,but:
- Only for top single value for each groups
- A lot of time to run
I need to retrieve the data in one single query and with top values=1,2,..
etc. as much as i need.
Thank you for your help
Jack
I need to calculate top values separated by groups.
The input table is like:
A B C
1 1 10
1 2 12
1 1 9
2 2 20
2 1 15
2 2 10
The group fields are A and B ,C contains the value to retrieve.
The result should be similar to:
A B C
1 1 10
1 2 12
2 1 15
2 2 20
The real table contains over half a million records and thousands of groups.
The number of groups varies with the content of data. A stop query will
solve the problem ,but:
- Only for top single value for each groups
- A lot of time to run
I need to retrieve the data in one single query and with top values=1,2,..
etc. as much as i need.
Thank you for your help
Jack