firegambler
Technical User
Hi Folks,
Would be great if somebody could give me a hint on this.
I have a table that roughly looks like this:
Profitcenter Sales Quantity Net Sales
100 30 465
100 10 470,12
100 12 47,12
100 303 447,12
100 304 564
100 210 81,1
300 546 546
300 131 746
300 8413 3214
300 1321 1002,5
300 11 15,21
500 8 9,5
500 3 4,2
605 1 2,1
605 78 144,2
605 96 96,51
605 56 55,54
605 45 56,21
605 32 341
605 45 451,2
Actually my table is about 3000 lines long...
Now I would like to have a query that shows the five data records with the highest sales quantity per profitcenter
(sorted in a descending order)
so that I get the topmost 5 for profitcenter 100, the topmost 5 for profitcenter 300, etc.
I managed to have get them in seperate queries but I'd like to have the results in one query.
Any suggestions would be very appreciated.
Thanks in advance!!
regards
Would be great if somebody could give me a hint on this.
I have a table that roughly looks like this:
Profitcenter Sales Quantity Net Sales
100 30 465
100 10 470,12
100 12 47,12
100 303 447,12
100 304 564
100 210 81,1
300 546 546
300 131 746
300 8413 3214
300 1321 1002,5
300 11 15,21
500 8 9,5
500 3 4,2
605 1 2,1
605 78 144,2
605 96 96,51
605 56 55,54
605 45 56,21
605 32 341
605 45 451,2
Actually my table is about 3000 lines long...
Now I would like to have a query that shows the five data records with the highest sales quantity per profitcenter
(sorted in a descending order)
so that I get the topmost 5 for profitcenter 100, the topmost 5 for profitcenter 300, etc.
I managed to have get them in seperate queries but I'd like to have the results in one query.
Any suggestions would be very appreciated.
Thanks in advance!!
regards
