2025-03-05     2025-03-06     2025-03-07

valid admincode1 for US

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

select countrycode,zip,placename,geonameid,admincode1,geonamesadmcode from zip_code where countrycode in ('US') and not placename like 'APO %' and not placename like 'FPO %' and zip_code.geonameid not in (2775000,4020092) and not exists (select 1 from geoname b where b.countrycode=zip_code.countrycode and b.admincode1=zip_code.geonamesadmcode and b.featurecode='ADM1' and b.countrycode in ('US') and not placename like 'APO %' and not placename like 'FPO %') order by countrycode,zip,placename

https://tools.usps.com/go/ZipLookupAction!input.action

countrycode	zip	placename	geonameid	admincode1	geonamesadmcode