Benutzer:Horgner/CH status SQL

Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 1. Juli 2005 um 19:00 Uhr durch Horgner (Diskussion | Beiträge) (Check alte Einwohnerentwicklung, Tabellenlayout). Sie kann sich erheblich von der aktuellen Version unterscheiden.

statistisch Fehlende

SELECT CONCAT('<tr><td>[[',brokenlinks.bl_to,']]</td>') as Artikel, '<td>', COUNT(DISTINCT
 brokenlinks.bl_from) as Linkanzahl, '</td></tr>' FROM cur, brokenlinks
 WHERE cur.cur_id = brokenlinks.bl_from AND cur.cur_namespace=0
 AND cur_text LIKE '%{{Ort_Schweiz|%'
 GROUP BY brokenlinks.bl_to HAVING Linkanzahl > 1 AND Linkanzahl < 50 ORDER BY  Linkanzahl DESC 
 LIMIT 250
Mentue 47
Venoge 38
Grafen_von_Lenzburg 28
Delsberger_Becken 27
Romont_FR 25
Orbeebene 24
Vallée_de_Joux 22
Hallwil 21
Vuillens 21
Meisterschwanden 20
Seengen 20
Bedano 19
Bidogno 19
Bironico 19
Bissone 19
Bogno 19
Cademario 19
Cadempino 19

* 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

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
  1. Bodio_TI (2189 Bytes)
  2. Ebnat-Kappel (2713 Bytes)
  3. Arosa (2771 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


  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)
  20. Knutwil (1286 Bytes)
  21. Gunzwil (1308 Bytes)
  22. Schlierbach_LU (1329 Bytes)
  23. Rongellen (1331 Bytes)
  24. Sils_im_Domleschg (1510 Bytes)
  25. Ruswil (1622 Bytes)
  26. Bignasco (1629 Bytes)
  27. Schenkon (1662 Bytes)
  28. Nottwil (1699 Bytes)
  29. Arosio_TI (1717 Bytes)
  30. Oberkirch_LU (1751 Bytes)
  31. Mühlebach_VS (1937 Bytes)
  32. Conthey (1939 Bytes)
  33. Ohmstal (1965 Bytes)
  34. Fischbach_LU (1970 Bytes)
  35. Roggliswil (1974 Bytes)
  36. Zell_LU (1987 Bytes)
  37. Nendaz (2044 Bytes)
  38. Gettnau (2047 Bytes)
  39. Langnau_bei_Reiden (2126 Bytes)
  40. Wauwil (2318 Bytes)
  41. Ennetbürgen (2336 Bytes)
  42. Ufhusen (2358 Bytes)
  43. Hefenhofen (2403 Bytes)
  44. Richenthal (2461 Bytes)
  45. Ausserbinn (2482 Bytes)
  46. Grossdietwil (2495 Bytes)
  47. Ottikon_bei_Kemptthal (2517 Bytes)
  48. Wikon (2744 Bytes)
  49. Hergiswil_bei_Willisau (3247 Bytes)
  50. Kandergrund (3304 Bytes)
  51. Reichenbach_im_Kandertal (3599 Bytes)
  52. Pfaffnau (3669 Bytes)
  53. Wilen_TG (3795 Bytes)
  54. Luthern (3913 Bytes)
  55. Urnerboden (4043 Bytes)
  56. Geiss (4178 Bytes)
  57. Eschenbach_LU (4261 Bytes)
  58. Menznau (4411 Bytes)
  59. Gelfingen (4604 Bytes)
  60. Evilard (4663 Bytes)
  61. Lieli_LU (4781 Bytes)
  62. Ermensee (4876 Bytes)
  63. Retschwil (4974 Bytes)
  64. Inwil_LU (5140 Bytes)
  65. Rain_LU (5148 Bytes)
  66. Geuensee (5152 Bytes)
  67. Eich_LU (5184 Bytes)
  68. Hämikon (5231 Bytes)
  69. Schongau_LU (5604 Bytes)
  70. Densbüren (6213 Bytes)
  71. Altwis (6393 Bytes)
  72. Muhen (6433 Bytes)
  73. Kallern (6530 Bytes)
  74. Hirschthal_AG (6639 Bytes)
  75. Bettwil (6747 Bytes)
  76. Auw_AG (6749 Bytes)
  77. Biberstein (6769 Bytes)
  78. Geltwil (6811 Bytes)
  79. Stilli (7004 Bytes)
  80. Abtwil_AG (7057 Bytes)
  81. Egolzwil (7135 Bytes)
  82. Suhr_AG (7202 Bytes)
  83. Besenbüren (7216 Bytes)
  84. Benzenschwil (7250 Bytes)
  85. Rohr_AG (7402 Bytes)
  86. Buttisholz (7434 Bytes)
  87. Doppleschwand (7434 Bytes)
  88. Oberentfelden (7453 Bytes)
  89. Ebersecken (7488 Bytes)
  90. Burg_AG (7517 Bytes)
  91. Buchs_AG (7892 Bytes)
  92. Küttigen (7927 Bytes)
  93. Schöftland (8154 Bytes)
  94. Rottenschwil (8182 Bytes)
  95. Erlinsbach (8432 Bytes)
  96. Unterentfelden (8448 Bytes)
  97. Römerswil (8522 Bytes)
  98. Aristau (9327 Bytes)
  99. Gränichen (9867 Bytes)
  100. Menziken (9892 Bytes)
  101. Beinwil_(Freiamt) (10013 Bytes)
  102. Ettiswil (11256 Bytes)
  103. Steinhaus_VS (12743 Bytes)
  104. Merenschwand (13024 Bytes)
  105. Zürich (24847 Bytes)
  106. Aarau (31328 Bytes)

Liste abgearbeitet

* 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

* 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

Liste abgearbeitet

* 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)

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)


* 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

nicht so gute Abfrage

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)