Community Data Science Workshops (Fall 2014)/Day 2 SQL project: Difference between revisions

no edit summary
imported>Jtmorgan
(links, title)
imported>Mako
No edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1:
{{CDSW Moved}}
 
[[File:Database-mysql.png|right|260px]]
 
Line 5 ⟶ 7:
== Building a Dataset using MySQL ==
 
In this project, we will explore a few ways to gather data from Wikimedia and StackExchange projects using [https://en.wikipedia.org/wiki/MySQL MySQL] and the [http://quarry.wmflabs.org/ Quarry] and [http://data.stackexchange.com/ Data Explorer]web applicationsapplication. Once we've done that, we will download the results of our queries in [https://en.wikipedia.org/wiki/Comma-separated_values CSV format] which can be used to ask and answer questions and visualize data in the final session.
 
=== Goals ===
 
* Learn how to use MySQL (a [https://en.wikipedia.org/wiki/SQL Structured Query Language]) to build datasets.
* Get set up to run MySQL queries to gather data from Wikimedia and StackExchange projects.
* Practice running MySQL queries on your own to get data about who is editing particular Wikipedia articles and answering questions on StackOverflow.
* Create a few collections of Wikipedia data that you can do research with in the final section.
 
=== Prerequisite ===
 
To participate in the afternoon session, you must have an a Wikimedia account. IfThis youis dothe notaccount haveis used to run queries with Quarry. It is also an account already, you can createuse when you edit oneWikipedia byand followingother theseWikimedia stepswebsites.
 
If you do not have a Wikimedia account already, <font size="+1">[https://en.wikipedia.org/wiki/Special:UserLogin >>click here to create an account <<]</font>.
 
If for some reason you are unable to create your account via the link above, try creating it via one of the links below. No matter which link you use, your account will allow you to log in to Quarry as well as any of the 100s of [https://meta.wikimedia.org/wiki/Wikimedia_projects Wikimedia project].
 
;Alternate account creation links
* [https://meta.wikimedia.org/wiki/Special:UserLogin meta.wikimedia.org]
* [https://commons.wikimedia.org/wiki/Special:UserLogin commons.wikimedia.org]
* [https://www.mediawiki.org/wiki/Special:UserLogin mediawiki.org]
* [https://en.wikisource.org/wiki/Special:UserLogin en.wikisource.org]
* [https://en.wiktionary.org/wiki/Special:UserLogin wiktionary.org]
* [https://en.wikivoyage.org/wiki/Special:UserLogin wikivoyage.org]
 
 
 
 
=== Practice ===
If you would like to practice SQL on your own, you can do so in the tutorial section of [http://sqlzoo.net/wiki/Main_Page SQLZoo].
 
=== Notes ===
* For this session, you will not need to use Python or type commands on the command line.
 
==== Queries and other notes ====
* https://etherpad.wikimedia.org/p/CDSW_fall_2014_SQL_session_1
Anonymous user