嗨,大家好我目前有此表Mysql刪除重複使用組?
會員
**ID Position Latitude Longitute**
1 1 1.38086 103.749
1 2 1.38086 103.749
1 3 1.38086 103.749
1 4 1.48086 103.949
1 5 1.48086 103.949
1 6 1.48086 103.949
1 7 1.58086 103.749
我使用select * from meber group by latitude,longitute order by position desc
電流。
然而,這將導致
**ID Position Latitude Longitute**
1 1 1.38086 103.749
1 4 1.48086 103.949
1 7 1.58086 103.749
我想顯示出最高的位置,而不是使用由所述組中的最低位置的結果。任何解決方案
請看看我的答案,因爲它可能更適合於某些性能嚴重的查詢。 –