2025-03-01     2025-03-02     2025-03-03

shape valid admin code 2 for US

number of errors=0
number of warnings=0
country=US
Group=chkGrpShp

select geonameid,name,countrycode,admincode1,admincode2 from geoname where countrycode='US' and featurecode='ADM2' and not exists (select 1 from geoname_shape where level=3 and geoname_shape.countrycode=geoname.countrycode and geoname_shape.admincode1=geoname.admincode1 and geoname_shape.admincode2=geoname.admincode2)

geonameid	name	countrycode	admincode1	admincode2