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
Dispenser
.
Toggle Highlighting
SQL
/* Newbie Commons Videos * Author: Dispenser */ USE commonswiki_p; SELECT RPAD(CONCAT("[[File:", img_name, "]]"), 155, " ") AS "File", ROUND(img_size/1024/1024) AS MB, CONCAT(img_width, "x", img_height) AS "Size", TIME_FORMAT(SEC_TO_TIME(CONVERT( SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(img_metadata, "\"playtime_seconds\";d:", -1), "\"length\";d:", -1), ";", 1), INTEGER)),'%k:%i:%s') AS img_duration, img_user_text, CONCAT(DATEDIFF(NOW(), user_registration), " days ago") AS Registered, LEFT(img_description,50) FROM image JOIN user ON user_id=img_user WHERE (user_editcount<100 AND user_registration > NOW() - INTERVAL 3 MONTH) AND img_media_type="VIDEO" AND img_size > 2e6 ORDER BY img_timestamp DESC
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...