I’m looking for duplicates in a Google Map table. The problem is the latitudes are slightly different and the addresses are slightly different (but I can tell they’re duplicates). Therefore, I’d like to get all records where the latitude is the same up to 4 places after the decimal point. How can this be done?
Something like:
Select * from googlemap
having count(len latitude > 4) > 1
Fields:
point_id, entry_id, latitude, longitude, address, city, zipcode, state, field_id, icon, supplier_id
Sample data from first answer:
'9', '51.5124', '9,557,885,908,964,1353,2145,2947'
'17', '32.7921', '17,19,94,2652'
'37', '32.7799', '37,101'
'54', '34.0953', '54,165'
'71', '42.3582', '71,2724'
'73', '25.7660', '73,125'
'100', '25.7906', '100,106'
'112', '25.7870', '112,378'
'113', '32.7114', '113,316'
'114', '25.7689', '114,140'
'129', '25.7708', '129,138,142'
'148', '25.7518', '148,155'
'156', '25.7710', '156,171'
'172', '35.6563', '172,175'
'174', '35.6559', '174,184'
'194', '48.8677', '194,261'
'195', '48.8661', '195,210,248,268'
How about this?