My MySQL table contains the following information,
ID User City HomeLatitude HomeLongitude
1 Egon Spengler New York 19.123456 23.43546
2 Mac Taylor New York 19.12343588 23.43546
3 Sarah Connor New York 19.128376 34.35354
4 Jean-Luc Picard La Barre 11.345455 12.4356546
5 Ellen Ripley Nostromo 32.76865 78.345435
From this table I need to query unique HomeLatitude values with first two decimal point because the first 3 location are almost same, so i need only the first row from the three rows..
I used the below given query,
SELECT DISTINCT HomeLatitude, City FROM user;
But that will return all the rows from the table. Can anyone help me on this.