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

valid admincode1,2 for CH

number of errors=0
number of warnings=0
country=CH

select countrycode,name,geonameid,admincode1,admincode2,featureclass,featurecode,relevance from geoname where countrycode in ('CH') and not featureCode in ('ADM1H','ADM2H','ADM3H','ADM4H','ADM5H','ADMD') and not featurecode in ('STM') and admincode1 is not null and admincode1<>'00' and admincode2 is not null and not exists (select 1 from geoname b where b.countrycode=geoname.countrycode and b.admincode1=geoname.admincode1 and b.admincode2=geoname.admincode2 and b.featurecode='ADM2' and b.countrycode in ('CH')) order by relevance desc,admincode1,admincode2

countrycode	name	geonameid	admincode1	admincode2	featureclass	featurecode	relevance