Zum Inhalt springen

Benutzer:Horgner/CH status SQL

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 23. Juni 2005 um 18:07 Uhr durch Horgner (Diskussion | Beiträge) (''falsche'' Daten). 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
Artikel
Orbeebene 23
Vallée_de_Joux 22
Val_de_Travers 17
Erguel 16

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

Gemeindeartikel mit voreilenden 0 in ' Stelle bei 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 '%°_0%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

Liste abgearbeitet

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
cur_title CONCAT( '# ', cur_title, ' (', LENGTH( cur_text ) , ' Bytes)' )
Eichberg_SG # Eichberg_SG (1127 Bytes)
Mels # Mels (1129 Bytes)
Goldingen_SG # Goldingen_SG (1131 Bytes)
Eschenbach_SG # Eschenbach_SG (1134 Bytes)
Gams_SG # Gams_SG (1142 Bytes)
Aranno # Aranno (1154 Bytes)
Thal_SG # Thal_SG (1157 Bytes)
Bellevue_GE # Bellevue_GE (1162 Bytes)
Jussy_GE # Jussy_GE (1167 Bytes)
Gy_GE # Gy_GE (1168 Bytes)
Walzenhausen # Walzenhausen (1183 Bytes)
Rorschacherberg # Rorschacherberg (1186 Bytes)
Bruzella # Bruzella (1197 Bytes)
Rüthi_SG # Rüthi_SG (1209 Bytes)
Häggenschwil # Häggenschwil (1220 Bytes)
Bernex_GE # Bernex_GE (1224 Bytes)
Grub_AR # Grub_AR (1227 Bytes)
Gommiswald # Gommiswald (1238 Bytes)
Confignon # Confignon (1256 Bytes)
Puplinge # Puplinge (1266 Bytes)
Cartigny_GE # Cartigny_GE (1288 Bytes)
Cologny # Cologny (1295 Bytes)
Choulex # Choulex (1299 Bytes)
Pregny-Chambésy # Pregny-Chambésy (1350 Bytes)
Schwellbrunn # Schwellbrunn (1351 Bytes)
Schönengrund # Schönengrund (1374 Bytes)
Aire-la-Ville # Aire-la-Ville (1384 Bytes)
Presinge # Presinge (1387 Bytes)
Perly-Certoux # Perly-Certoux (1392 Bytes)
Brunnadern_SG # Brunnadern_SG (1394 Bytes)
Collex-Bossy # Collex-Bossy (1407 Bytes)
Avusy # Avusy (1412 Bytes)
Anières # Anières (1419 Bytes)
Vilters-Wangs # Vilters-Wangs (1448 Bytes)
Laupen_BE # Laupen_BE (1449 Bytes)
Le_Grand-Saconnex # Le_Grand-Saconnex (1465 Bytes)
Lichtensteig # Lichtensteig (1469 Bytes)
Chêne-Bourg # Chêne-Bourg (1475 Bytes)
Genthod # Genthod (1507 Bytes)
Hundwil # Hundwil (1515 Bytes)
Bardonnex # Bardonnex (1536 Bytes)
Corsier_GE # Corsier_GE (1536 Bytes)
Avully # Avully (1538 Bytes)
Urnäsch # Urnäsch (1550 Bytes)
Speicher_AR # Speicher_AR (1560 Bytes)
Sevelen_SG # Sevelen_SG (1585 Bytes)
Chêne-Bougeries # Chêne-Bougeries (1591 Bytes)
Balerna # Balerna (1622 Bytes)
Bignasco # Bignasco (1631 Bytes)
Collonge-Bellerive # Collonge-Bellerive (1655 Bytes)
Gais_AR # Gais_AR (1672 Bytes)
Chancy # Chancy (1688 Bytes)
Arosio_TI # Arosio_TI (1701 Bytes)
Weesen_SG # Weesen_SG (1714 Bytes)
Bütschwil_SG # Bütschwil_SG (1721 Bytes)
Oberhelfenschwil # Oberhelfenschwil (1782 Bytes)
Hermance # Hermance (1789 Bytes)
Trimmis # Trimmis (1793 Bytes)
Mosnang # Mosnang (1805 Bytes)
Wald_AR # Wald_AR (1812 Bytes)
Giubiasco # Giubiasco (1969 Bytes)
Cadenazzo # Cadenazzo (2012 Bytes)
Hemberg_SG # Hemberg_SG (2075 Bytes)
Kirchberg_SG # Kirchberg_SG (2114 Bytes)
Waldkirch_SG # Waldkirch_SG (2160 Bytes)
Bodio_TI # Bodio_TI (2189 Bytes)
Ebnat-Kappel # Ebnat-Kappel (2470 Bytes)
Herisau # Herisau (2594 Bytes)
Arosa # Arosa (2705 Bytes)
Waldstatt # Waldstatt (3062 Bytes)
Teufen_AR # Teufen_AR (3871 Bytes)
Rehetobel # Rehetobel (4172 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%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 500

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

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

Vorlage nicht in Stadt oder Gemeinde Artikel

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)

Checks Zürcher Gemeinden

Zürcher 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 '%KANTON = Z%'
 AND (cur_text LIKE '%BREITENGRAD = 0%' OR cur_text LIKE '%LÄNGENGRAD = 0%')
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 20

gibt eine Nullliste

Geographie Check

Gemeindeartikel mit Geografie anstatt Geograhpie:

SELECT cur_title, cur_namespace, CONCAT(LENGTH( cur_text ) , ' Bytes') AS Groesse 
 FROM cur
 WHERE cur_text LIKE '%<!--schweizbezogen-->%'
 AND cur_text LIKE '%Geografie%' 
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
 LIMIT 20

Liste abgearbeitet

nicht so gute Abfrage

Alt besser nicht so:

SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
 FROM cur
 WHERE cur_text LIKE '%{{Ort_Schweiz|%'
 AND cur_text LIKE '%<!--schweizbezogen-->%'
 ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC 
 LIMIT 20

gibt eine Nullliste

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)
  5. Brigerbad (344 Bytes)
  6. Villars-sur-Ollon (356 Bytes)
  7. Ospizio_Bernina (424 Bytes)
  8. Julia_(Fluss) (430 Bytes)
  9. Nuolen (433 Bytes)
  10. Quinten (446 Bytes)
  11. Unterwalden (447 Bytes)
  12. Chamanna_Cluozza (448 Bytes)
  13. Nationalliga_A (449 Bytes)
  14. Wildpark_Peter_und_Paul (455 Bytes)
  15. Armee_XXI (464 Bytes)
  16. Grosses_Moos (472 Bytes)
  17. Kurt_Aeschbacher (477 Bytes)
  18. Vättis (486 Bytes)
  19. Cavaglia (489 Bytes)
  20. Brünigpass (490 Bytes)