Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Top sites used in external links (bswiki, main namespace) v1
by
MarioGom
This query is marked as a draft
This query has been published
by
Ivi104
.
Toggle Highlighting
SQL
SELECT CONCAT_WS('.', REVERSE(SUBSTRING_INDEX(REVERSE(el_to_domain_index), '.', 1)), REVERSE(SUBSTRING_INDEX(SUBSTRING_INDEX(REVERSE(el_to_domain_index), '.', 2), '.', -1)), REVERSE(SUBSTRING_INDEX(SUBSTRING_INDEX(REVERSE(el_to_domain_index), '.', 3), '.', -1)), REVERSE(SUBSTRING_INDEX(SUBSTRING_INDEX(REVERSE(el_to_domain_index), '.', 4), '.', -1)), REVERSE(SUBSTRING_INDEX(SUBSTRING_INDEX(REVERSE(el_to_domain_index), '.', 5), '.', -1)) ) AS original_domain, el_to_path, COUNT(*) AS counter FROM externallinks GROUP BY original_domain, el_to_path ORDER BY counter DESC LIMIT 10;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...