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
Bdijkstra
.
Combines *new* uploads from `image` and `filearchive` and shows next to deletions in `filearchive`. Table `logging` doesn't have any info from before 2006. Deletions before 2006 were not recorded anywhere it seems.
Toggle Highlighting
SQL
SELECT fau.year, fau.uploads + img.uploads AS uploads FROM (SELECT LEFT(fa_timestamp, 4) AS year, COUNT(*) AS uploads FROM filearchive GROUP BY year DESC) fau LEFT OUTER JOIN (SELECT LEFT(img_timestamp, 4) AS year, COUNT(*) AS uploads FROM image GROUP BY year) img ON fau.year=img.year /*SELECT fau.year, uploads, deletions FROM ( SELECT LEFT(fa_timestamp, 4) AS year, COUNT(*) AS uploads FROM filearchive GROUP BY year DESC) fau LEFT OUTER JOIN (SELECT LEFT(fa_deleted_timestamp, 4) AS year, COUNT(*) AS deletions FROM filearchive GROUP BY year DESC) fad ON fau.year=fad.year*/
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...