I have a SP with a temp table that contains the following.
ACCT Miles
A1 9
A2 44
A2 4
A2 12
A2 2
A6 8
A9 3
A9 22
What I would like to return as a result set is such
ACCT Miles
A1 9
A2 2
A6 8
A9 3
All the accounts still but the ones that appear on multiple rows are returned with the shortest distance (miles).
Thanks.