Hello!
I have three columns: UNIQID, ID, and QUANTITY.
I'd like to write a query such that where there is a duplicate in ID, choose the UNIQID (or the entire row) that corresponds to the minimum QUANTITY for that duplicate.
For example, if:
UNIQID ID QUANTITY
1 123 100
2 123 50
3 444 100
4 654 75
5 654 100
I'd like the final result to be:
UNIQID ID QUANTITY
2 123 50
3 444 100
4 654 75
Any thoughts? I've tried Totals Queries and Duplicate Queries, both of which get me part of the way there, but I can't get the final result I'm looking for.
thank you.