Hi all,
This is my situation
SalesReceiptId, ItemCode, ItemPrice, QuantitySold
1, AAA, 10.24, 5
1, BBB, 13.89, 6
1, CCC, 12.09, 7
1, DDD, 19.98, 2
1, EEE, 34.89, 1
2, BBB, 14.23, 63
2, CCC, 11.09, 7
3, DDD, 78.98, 2
3, EEE, 99.10, 44
I want to find out which Item in all Sales Receipts was the highest (MAX) and return the SalesReceiptId, ItemCode and QuantitySold.
For example, in the above example, i would want to return the following:-
1, EEE, 34.89, 1
2, BBB, 14.23, 63
3, EEE, 99.10, 44
Any idea? Cracking my head here.
Thanks.
This is my situation
SalesReceiptId, ItemCode, ItemPrice, QuantitySold
1, AAA, 10.24, 5
1, BBB, 13.89, 6
1, CCC, 12.09, 7
1, DDD, 19.98, 2
1, EEE, 34.89, 1
2, BBB, 14.23, 63
2, CCC, 11.09, 7
3, DDD, 78.98, 2
3, EEE, 99.10, 44
I want to find out which Item in all Sales Receipts was the highest (MAX) and return the SalesReceiptId, ItemCode and QuantitySold.
For example, in the above example, i would want to return the following:-
1, EEE, 34.89, 1
2, BBB, 14.23, 63
3, EEE, 99.10, 44
Any idea? Cracking my head here.
Thanks.
Comment