Zum Inhalt springen

Benutzer:Horgner/CH status SQL

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 2. Oktober 2005 um 11:59 Uhr durch Horgner (Diskussion | Beiträge) (* keine Weblinks). Sie kann sich erheblich von der aktuellen Version unterscheiden.

gute Abfragen

* Koodinaten Check

Gemeindeartikel mit voreilenden 0 in Koordinaten:

SELECT cur_title, cur_namespace, CONCAT(LENGTH( cur_text ) , ' Bytes') AS      Groesse
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz|%'
 AND (cur_text LIKE '%BREITENGRAD = 0%' OR cur_text LIKE '%LÄNGENGRAD = 0%' OR cur_text LIKE '%°_0%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Liste abgearbeitet 27.6.2005

Gemeindeartikel mit vertauschten Koordinaten:

SELECT cur_title, cur_namespace, CONCAT(LENGTH( cur_text ) , ' Bytes') AS      Groesse
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz|%'
 AND cur_text NOT LIKE '%BREITENGRAD = 4%'
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Liste abgearbeitet 3.7.2005

* km2 Check

SELECT CONCAT( '# [[', cur_title, ']]')
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz|%'
 AND cur_text LIKE '%km2%'
 LIMIT 500

Liste abgearbeitet 2.7.2005

* Check alte Einwohnerentwicklung, Tabellenlayout

SELECT cur_title, cur_namespace, CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz|%'
 AND cur_text LIKE '%Einwohneren%'
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Liste abgearbeitet 1.7.2005

* falsche Daten

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz%'
 AND (cur_text LIKE '%.12.%' OR cur_text LIKE '%. 12.%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Liste abgearbeitet 25.6.2005

* Kontrolle von Wappen

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%KANTON = Wallis|%'
 AND cur_text NOT LIKE '%Wappen_fehlt.jpg%'
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Liste für TG LU SO GR TI JU FR NE BE VD VS abgearbeitet

* Gemeinden mit Stub Baustein

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz%'
 AND cur_text LIKE '%{{stu%'
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500
SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
 FROM cur
 WHERE cur_namespace = 0
 AND cur_text LIKE '%{{%stub%}}%'
 AND cur_text LIKE '%{{Ort_Schweiz%'
 HAVING lung > 1500
 ORDER BY lung DESC, cur_title LIMIT 500

concat('# ', cur_title, '') lung
# Stalden_VS 8090
# Evolène 1441
# Marmorera 1325
# Chamoson 1317

* Gemeinden mit fehlender Navileiste, bringt meist Ortschaften

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz%'
 AND cur_text NOT LIKE '%Navigationsleiste%' 
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500
  1. Reckingen_VS (650 Bytes)
  2. Münster_VS (719 Bytes)
  3. Geschinen (943 Bytes)
  4. Arosio_TI (1717 Bytes)
  5. Mühlebach_VS (1937 Bytes)
  6. Ausserbinn (2482 Bytes)
  7. Ottikon_bei_Kemptthal (2517 Bytes)
  8. Urnerboden (4043 Bytes)
  9. Geiss (4178 Bytes)
  10. Steinhaus_VS (12743 Bytes)

* Geographie Check

SELECT cur_title 
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0 
 AND cur_text LIKE '%{{Ort_Schweiz|%'
 AND cur_text LIKE '%Geografie%' 
 LIMIT 200

Liste abgearbeitet 27.6.2005

* unberechtigter Stub Baustein

SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
 FROM cur
 WHERE cur_namespace = 0
 AND cur_text LIKE '%{{stu%'
 AND cur_text LIKE '%{{Ort_Schweiz%'
 HAVING lung > 1300
 ORDER BY lung DESC, cur_title LIMIT 500
  1. Marmorera 1307
  2. Evolène 1272
  3. Reckingen-Gluringen 1176
  4. Münster-Geschinen 1165

Liste abgearbeitet 13.7.

* Söhne und Töchter

SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
 FROM cur
 WHERE cur_namespace = 0
 AND cur_text LIKE '%Söhne und Töchter%'
 AND cur_text LIKE '%{{Ort_Schweiz%'
 ORDER BY lung DESC, cur_title LIMIT 500

abgearbeitet 26. September 2005

SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
 FROM cur
 WHERE cur_namespace = 0
 AND cur_text LIKE '%{{Ort_Schweiz%'
 AND cur_text NOT LIKE '%Weblink%' 
 ORDER BY lung DESC, cur_title LIMIT 500
concat('# ', cur_title, '') lung
# Selma_GR 1058
# Origlio 1044
# Melano 1008
# Neggio 995
# Muggio_TI 956
# Sagno 936
# Valcolla 933
# Vacallo 928
# Maroggia 910
# Wiler_(Lötschen) 908
# Wald_BE 860
# Vico_Morcote 826
# Lamone 814
# Lugaggia 811
# Martisberg 783
# Villa_Luganese 778
# Liedertswil 774
# Nenzlingen 764
# Martigny-Combe 759
# Sembrancher 751
# Port-Valais 741
# Zeglingen 739
# Saint-Martin_VS 730
# Riddes 729
# Liddes 723
# Roggwil_BE 719
# Rümlingen 718
# Zunzgen 707
# Vernate_TI 704
# Wahlen_BL 704
# Porza 701
# Vezia 699

nicht so gute Abfrage

schweizbezogen Artikel

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_text LIKE '%<!--schweizbezogen-->%'
 AND NOT cur_text LIKE '%{{Begriffsklärung}}%'
 AND NOT cur_text LIKE '%#REDIRECT %'
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 20
  1. Schweizer_Fussballverein (182 Bytes)
  2. Binz_(Maur) (291 Bytes)
  3. Gamsen_VS (341 Bytes)
  4. Riviera_(Schweiz) (342 Bytes)

Check BFS Nr. u. Karte

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz%'
 AND (cur_text LIKE '%BFS = 0000|%' OR cur_text NOT LIKE '%BILDPFAD_KARTE = Karte Gemeinde%' OR cur_text NOT LIKE '%BILDPFAD_KARTE = Karte_Gemeinde%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

es kommen die falschen

  1. Liddes (708 Bytes)
  2. Sembrancher (731 Bytes)
  3. Vétroz (806 Bytes)
  4. Orsières (826 Bytes)
  5. Vollèges (826 Bytes)
  6. Lohnstorf (874 Bytes)
  7. Bourg-Saint-Pierre (928 Bytes)
  8. Ardon_VS (943 Bytes)
  9. Geschinen (943 Bytes)
  10. Romoos (988 Bytes)
  11. Gluringen (1013 Bytes)
  12. Neudorf_LU (1036 Bytes)
  13. Selma_GR (1058 Bytes)
  14. Chamoson (1069 Bytes)
  15. Hasle_LU (1089 Bytes)
  16. Mesocco (1129 Bytes)
  17. Rickenbach_SO (1141 Bytes)
  18. Ferenbalm (1252 Bytes)
  19. Mauensee_LU (1265 Bytes)

Vorlage nicht in Stadt oder Gemeinde Artikel

Abfrage hat Probleme

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_namespace=0
 AND cur_is_redirect=0
 AND cur_text LIKE '%{{Ort_Schweiz%'
 AND (cur_text NOT LIKE '%GEMEINDEART = Stadt%' OR cur_text NOT LIKE '%GEMEINDEART = Gemeinde%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Hat nicht funktioniert, warum ?

  1. Reckingen_VS (633 Bytes)
  2. Nebikon (678 Bytes)
  3. Arbaz (685 Bytes)
  4. Salins_VS (686 Bytes)