Skip to content

Duplicate Locations

Ryan TG edited this page Aug 6, 2021 · 2 revisions

Identify and remove duplicate locations. Here are two methods:

select name, city, count(*) from locations group by 1,2 having count(*) >1;

select street, state, count(*) from locations group by 1,2 having count(*) >1;

select lat, zip, count(*) from locations group by 1,2 having count(*) >1;