Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
TH2: Time between registration and invite
by
Jtmorgan
This query is marked as a draft
This query has been published
by
EpochFail
.
step 1: join the th2 table with the user table.
Toggle Highlighting
SQL
SELECT user_id, TIMESTAMPDIFF( SECOND, DATE_FORMAT(user_registration,"%Y%m%d%H%i%S"), DATE_FORMAT(invite_date, "%Y%m%d%H%i%S") ) AS time_to_invite FROM u2041__thr_p.th2_experimental_user AS th2 LEFT JOIN enwiki_p.user AS u USING (user_id) UNION ALL SELECT user_id, TIMESTAMPDIFF( SECOND, DATE_FORMAT(user_registration,"%Y%m%d%H%i%S"), DATE_FORMAT(invite_date, "%Y%m%d%H%i%S") ) AS time_to_invite FROM u2041__thr_p.th3_experimental_user AS th3 LEFT JOIN enwiki_p.user AS u USING (user_id)
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...