Does anyone know of any resources that provide good, useful stock datasets? For example, I\'ve downloaded a SQL script that includes all of the U.S. states, cities, and zipcode
If you're looking for time series data, check out Quandl. The great thing here is that it has tons of different data sets (stocks, economics, health, education, etc.) but accessible all by one easy, RESTful API. If programming isn't your thing, then there is a free Excel plug in that lets you easily grab the data into your spreadsheet.
Lots of links to open data sets here:
http://readwrite.com/2008/04/09/where_to_find_open_data_on_the/
although I doubt any of them will generate SQL statements for you.
Stock symbols are problematic, they can be different for every trade execution venue and pretty much all are held as protected intellectual property of the venue or data vendor, e.g. Thomson Reuters, Bloomberg, Nasdaq, NYSE.
Shadowman, better if you say detail list of what you want.
Here is an idea how to drop down a list of something - this is how I do that:
For example, I need a list of colleges/universities in California.
colleges california wikipedia
. Then open the first found item there;In the second cell of the first row write templated script, like:
="INSERT INTO Colleges (state, name) VALUES ('CA', '" & RC[-1] & "');"
This should produce something like
INSERT INTO Colleges (state, name) VALUES ('CA', 'Academy of Art University, San Francisco');
INSERT INTO Colleges (state, name) VALUES ('CA', 'Allied American University, Laguna Hills (Online)');
INSERT INTO Colleges (state, name) VALUES ('CA', 'American Jewish University, Los Angeles');
INSERT INTO Colleges (state, name) VALUES ('CA', 'American Sports University, San Bernardino');
INSERT INTO Colleges (state, name) VALUES ('CA', 'Anaheim University, Anaheim (Online)');
INSERT INTO Colleges (state, name) VALUES ('CA', 'Antioch University, Culver City');
-- etc...
http://www.data.gov/ has a lot of different datasets but most are not "stock".
The MySQL documentation site has a list to a downloadable dataset already in SQL format, ready for use in a database.
cd Downloads
gunzip world_innodb.sql.gz
world
database$ mysql
mysql> create database world
mysql> quit
cat world_innodb.sql | mysql world
This dataset is idea for learners, looking to practice their SQL.