January 8, 2007 at 6:05 am
Hi
I'm generally OK at grouping data, but am struggling with this. Hopefully someone will have a simple answer.
I want to find the lowest numbered ID from rows which have the same value. A simplified version of the table data is shown below:
ID Value
123 900
456 900
665 400
555 400
111 200
333 200
I want the result to be as shown below:
ID Value
123 900
555 400
111 200
Any ideas will be gratefully received.
Thanks
Paul
January 8, 2007 at 6:30 am
SELECT MIN([ID]) AS [ID], Value
FROM
GROUP BY Value
ORDER BY Value DESC
Far away is close at hand in the images of elsewhere.
Anon.
January 8, 2007 at 7:12 am
Thanks, David
I knew there was an easy solution here - I just couldn't see it.
Thanks, again for your time.
Paul
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply