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

ADM features with geoshape have same countrycode

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

select geoname.countrycode,geoname_shape.countrycode,featurecode,level,geoname.geonameid,geoshapeid from geoname,geoname_shape where geoname.geonameid=geoname_shape.geonameid and level=1+ replace(featurecode,'ADM','')::int and featurecode like 'ADM_' and featurecode not in ('ADMD','ADMF','ADMS') and geoname.countrycode<>geoname_shape.countrycode order by 1

countrycode	countrycode	featurecode	level	geonameid	geoshapeid