mysql query syntax

sql , query , php , mysql Canada
  • 8 years ago

    Hi Guys ..

    i need a hand here ..

    I have a table that goes like this ..

    Id , Name, City, Country , Points

    I want to retrieve 10 members with the highest points of a city and have it sorted by the points.

    So the reuslt should lool kike:

    Frank New York 10 000 points Joe New York 4000 points Bill New York 800 points Miles Dallas 10 000 points John Dallas 2000 points

    Can anyone help me with how the sql statement should look ? I am chewing on this since 2 days.

    Cheers PEter

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth