GOV/Qualitätskontrolle
< GOV
Zur Navigation springen
Zur Suche springen
Kirchen ohne Standort
SELECT o.textualId FROM Property t, GovItem o LEFT JOIN Relation r ON r.child=t.gov_object AND r.type=2 WHERE t.type=2 AND t.typeObject=26 AND o.id=t.gov_object AND r.parent IS NULL;
Kirchspiele ohne Kirche
Relevante Objekt-Typen:
- 29 (Kirchspiel)
- 42 (Pfarrei)
- 81 (Kloster)
- 92 (Kirchengemeinde)
SELECT o.textualId from Property t, GovItem o LEFT JOIN Relation r ON r.parent=t.gov_object AND r.type=3 WHERE t.type=2 and t.typeObject IN (29,92,42,81) AND o.id=t.gov_object and r.child IS NULL;
Religiöse Objekte ohne Konfession
Relevante Objekt-Typen:
- 26 (Kirche)
- 29 (Kirchspiel)
- 42 (Pfarrei)
- 81 (Kloster)
- 92 (Kirchengemeinde)
SELECT o.textualId from Property t, GovItem o LEFT JOIN Property k ON k.gov_object=t.gov_object AND k.type=7 WHERE t.type=2 and t.typeObject IN (26,29,92,42,81) AND o.id=t.gov_object AND k.id IS NULL;