This is a compilation of suggestions from HackerNews and Quora on learning SQL. I wanted to check some of the links provided in comments but there were too many. So here they are to study at your own pace.
- The Best Medium-Hard Data Analyst SQL Interview Questions
- Use the Index, Luke - Markus Winand. Online SQL Indeing and Tuning eBook covering different SQL flavors. I believe it’s his book SQL Performance Explained (see Books) in the Online form.
- Modern SQL - Markus Winand. Modern SQL features are explained in simple terms. By Markus Winand, see below.
- PostreSQL Manual - The first 100 or so pages (at least up to chapter 7) will give you a good overview.
- Postres Guide - Craig Kerstien. Designed as an aid for beginners and experienced users to find specific tips and explore tools available within Postgres.
- Wikipedia: Relational algebra - A family of algebras with a well-founded semantics used for modelling the data stored in relational databases, and defining queries on it.
- Slides from Drunken Query Master and Join-fu Talks at ZendCon - Jay Pipes. Slides from a couple of SQL-related talks.
- PGExcercises.com - PostreSQL questions and answers. You can use your own installation and provided datasets.
- HackerRank SQL Challenges - If you want to brush up your skills
- The SQL Tutorial for Data Analysis - Tutorial is meant for aspiring analysts who have used Excel a little bit but have no coding experience.
- SQLBolt - A series of interactive lessons and exercises designed to help you quickly learn SQL right in your browser.
- DB’s SQL - Stanford’s self-paced course.
- Introduction to Databases - Stanford again. This course covers database design and the use of database management systems for applications. Review
- Try SQL - A free course from CodeSchool.
- Schemaverse - A space-based strategy game implemented entirely within a PostgreSQL database. Compete against other players using raw SQL commands to command your fleet.
- The SQL Tutorial for Data Analysis - This tutorial is designed for people who want to answer questions with data.
- SQL EX - Practical skills of SQL language. Recommended to anyone interested in seeing how certain datasets can require quite a bit of creativity to extract using SQL.
- RedTiger’s Hackit - This hackit is for people who want to test their knowledge in PHP / SQL security. Learn through SQL injections.
- SQL Teaching - Teaches you basic SQL in an interactive manner.
- SQL (Intermedia to Advanced) - Jeffrey James. Online course made for Udemy that got declined by them due to audio quality.
- Java, SQL and JOOQ - A blog by Lukas Eder, JOOQ author.
- Use the Index, Luke - Marus Winand. Latest News About SQL Perfomance. Modern SQL in PostreSQL
- The High-Performance SQL Blog - Periscope Data blog. They make nice dashboards out of your data.
- Craig Kerstiens - Head of the Cloud team in Citus Data. Citus extends Postgres to be a horizontally scalable distributed database. Fun with SQL: Computing run rate and month over month growth in Postgres
- Postgres Weekly - Craig Kerstiens. A free, once–weekly e-mail round-up of PostgreSQL news and articles.
- PostgreSQL’s Powerful New Join Type: LATERAL - PostgreSQL 9.3 has a new join type!
- SQL Performance Explained - Markus Winand. SQL Performance Explained: Everything Developers Need to Know about SQL Performance. How to effectively use and leverage the SQL indices. No eBook it seems, paperback / PDF only.
- Data Intensive - Marin Kleppman. Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems. O’Reilly
- The Art of SQL - Stephane Faroult, Peter Robson. The Art of SQL offers best practices that teach experienced SQL users to focus on strategy rather than specifics.
- SQL for Smarties - Joe Celko’s SQL for Smarties: Advanced SQL Programming.
- SQL Antipatterns - Bill Karwin. SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers)
- PostgreSQL 9.0 High Performance - Gregory Smith. Discusses all the different settings and tweaks you can do in Postgres.
- High Performance MySQL - Baron Schwartz, Peter Zaitsev, Vadim Tkachenko. High Performance MySQL, 3rd Edition: Optimization, Backups, and Replication. Revised edition of High Perrfomance MySQL by Jeremy D. Zawodny, Derek J. Balling.
- PostgreSQL 9 High Availability Cookbook - Shaun Thomas. Discusses how do you go from 1 Postgres instance to 1+ instance. Talks about replication, monitoring, cluster management, avoiding downtime etc.
- MySQL High Availability - Charles Bell, Mats Kindahl, Lars Thalmann. MySQL High Availability: Tools for Building Robust Data Centers. Similar book for MySQL.
- Architecture of a Database System - Joseph M. Hellerstein, Michael Stonebraker and James Hamilton. Pretty technical but great write up from researchers from Berkeley, MIT, and Microsoft that could help to get a good mental model of a SQL database. PDF
- Database Design for Mere Mortals - Michael Hernandez. Database Design for Mere Mortals: A Hands-On Guide to Relational Database Design. Easy, Commonsense Guide to Database Design.
- Stack Exchange Data Explorer - A fairly good resource for practising queries and for looking at others queries against a relatable dataset.
- AWS Public Datasets - AWS hosts a variety of public datasets that anyone can access for free. There should be more then enough there for you to start playing with “big data” tools and getting familiar with how to store, ETL, and query large datasets.
- Data Is Plural - Jeremy Singer-Vine. A weekly newsletter of useful/curious datasets.