K
Kamyk
Hello all!
I have the following problem.
I would like to create a query, which will sum up 3 orders of highest
quantity for each department.
Here is the visual example of my question:
DEPT ORDER QUANTITY
Stamping 11111111111 40
Stamping 22222222222 30
Stamping 66666666666 10
Assembly 55555555555 90
Assembly 99999999999 80
Assembly 33333333333 70
Source data looks like this:
DEPT ORDER QUANTITY
Stamping 11111111111 40
Stamping 55555555555 4
Stamping 22222222222 30
Stamping 66666666666 10
Stamping 33333333333 2
Assembly 11111111111 3
Assembly 55555555555 90
Assembly 99999999999 80
Assembly 33333333333 70
Assembly 66666666666 40
I can also write you that the source data mentioned above are the result of
processing (I mean it is a query).
Can you help me to achieve such query?
Thanx in advanced for you help
Marcin from Poland
I have the following problem.
I would like to create a query, which will sum up 3 orders of highest
quantity for each department.
Here is the visual example of my question:
DEPT ORDER QUANTITY
Stamping 11111111111 40
Stamping 22222222222 30
Stamping 66666666666 10
Assembly 55555555555 90
Assembly 99999999999 80
Assembly 33333333333 70
Source data looks like this:
DEPT ORDER QUANTITY
Stamping 11111111111 40
Stamping 55555555555 4
Stamping 22222222222 30
Stamping 66666666666 10
Stamping 33333333333 2
Assembly 11111111111 3
Assembly 55555555555 90
Assembly 99999999999 80
Assembly 33333333333 70
Assembly 66666666666 40
I can also write you that the source data mentioned above are the result of
processing (I mean it is a query).
Can you help me to achieve such query?
Thanx in advanced for you help
Marcin from Poland