spetroleum
IS-IT--Management
I need to compare rows returned in a group and the return a single row for the report of information taken from multiple rows in said group. how can I accomplish this?
Example:
Group Info
Stock ID Event ID Qty Received
130000T 1234 100
130010T 1234 800
130070 1234 900
Results Desired:
130070 1234 100
The lowest quantity received will always be returned and the Stock ID of the largest quantity will be returned.
Example:
Group Info
Stock ID Event ID Qty Received
130000T 1234 100
130010T 1234 800
130070 1234 900
Results Desired:
130070 1234 100
The lowest quantity received will always be returned and the Stock ID of the largest quantity will be returned.