Mentioned above, but here are a number of places to start. Most of mine deal with statistical analysis, but the Data Science masters would be a good place to start.
http://sqlfiddle.com/ - SQL Fiddle is an online SQL coding platform. Good place to play around.