SELECT COUNT(*) FROM geo;
--43724
SELECT *, COUNT(*)
FROM (SELECT city, coname, startyear FROM geo)a
GROUP BY city, coname, startyear
HAVING COUNT(*) > 1;
If you look at the rows with duplicate keys you can see they are simply complete duplicates so let's create a table with just distinct rows.
DROP TABLE geo1;
CREATE TABLE geo1 AS
SELECT DISTINCT *
FROM geo;
--43662
We still have 11 keys that are not distinct. We'll need to clean those up.
==Name Based Matching geo keys to companybase keys==