Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
MJL
.
Toggle Highlighting
SQL
/* 50 queries */ USE wikidatawiki_p; CREATE TABLE user_rights( d.site_global_key varchar(50) not null, d.ug_group varchar(50) not null ) INSERT INTO user_rights (d.site_global_key,d.ug_group) SELECT d.ug_group, d.site_global_key FROM user_groups d CROSS JOIN sites d; USE enwiki_p INSERT INTO user_rights ("enwikipedia",enwp.ug_group) SELECT DISTINCT enwp.ug_group FROM user_groups enwp; /*SELECT DISTINCT `ug_group` FROM `user_groups`;*/
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...