MySQL Forums
Forum List  »  Newbie

Re: Help with minimum/group by
Posted by: Rick James
Date: November 08, 2009 03:37PM

See what this gives you:
SELECT a, dist, c
   FROM (
      SELECT a, ABS(b-14.3) as dist, c
         FROM closest
         ORDER BY c, dist
        ) as x
   GROUP BY c

Options: ReplyQuote


Subject
Written By
Posted
November 08, 2009 12:04AM
November 08, 2009 11:37AM
Re: Help with minimum/group by
November 08, 2009 03:37PM
November 08, 2009 05:55PM
November 08, 2009 06:10PM
November 08, 2009 06:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.