MySQL Forums
Forum List  »  Newbie

Re: Help with DISTINCT in SELECT
Posted by: Felix Geerinckx
Date: April 15, 2005 02:14AM

aeron glemann wrote:

> I have a big table of Countries, Cities and
> Coordinates (Latitude and Longitude). I can easily
> use "SELECT DISTINCT country" to pull out the
> non-duplicating country names - however how can I
> also get the Coordinates that correspond to those
> rows? "SELECT DISTINCT country, coordinates"
> naturally returns almost all records. What syntax
> am I looking for?

It's not clear to me what coordinates you want. You imply there are many records of the same country, each with its own set of coordinates. Which one of these do you want?

--
felix

Options: ReplyQuote


Subject
Written By
Posted
Re: Help with DISTINCT in SELECT
April 15, 2005 02:14AM


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.