Free Resources Around the SQL Standard


Picture of ISO/IEC 9075:2011 CD

We all love open source software. Wouldn’t it be great if international standard documents such as the SQL standard would be open too?

While they are public—as opposed to secret—the SQL standard is not free—as in beer.

If you really want to get a copy of the standard, you have to bite the bullet. The best advice I have is to check the prices in the various stores of the member bodies (ANSI, DIN, …) around the globe. In particular your local one might have a better price in your local currency.

However, the freely accessible information on this website and on this page in particular might be good enough for your purpose. So check it out!

SQL:2023

A new part was added: 9075-16:2023 Property Graph Queries (SQL/PGQ).

The other parts were also updated. Most notably several additions to JSON functionality.

The new digital artifacts can be downloaded here. The link goes to part 2, but you can navigate to the other parts from there.

Dedicated article on modern-sql.com: SQL:2023

Recommended reading: SQL:2023 is finished: Here is what’s new

SQL:2019

A new part was released in June 2019: 9075-15:2019 Multi-dimensional arrays (SQL/MDA).

Recommended documents:

SQL:2016

What’s new in SQL:2016?

ISO released some highly relevant technical reports for free:

Also note that I’ve written about the following features: listagg.

Browsable BNF grammar of Part 2.

SQL:2016 validator: https://developer.mimer.com/sql-2016-validator/

SQL:2011

Recommended articles (PDF):

Part 1 can be downloaded free of charge from ISO

ISO released a free technical report on “SQL Support for Time-Related Information” (covers temporal tables).

Browsable BNF grammar of Part 2 and Part 4.

Drafts of all parts are linked as “SQL:20nn Working Draft Documents” at https://www.wiscorp.com/SQLStandards.html.

SQL:2008

Browsable BNF grammar of Part 2.

SQL:2003

Browsable BNF grammar of Part 2 (alternative source).

SQL:1999

The full content of the book “SQL-99 Complete, Really” is available online and for free at the crate.io. In total conflict to its title, the book only covers Core SQL:1999.

Online validator at https://developer.mimer.com/.

Browsable BNF grammar of Part 2 (alternative source).

SQL-92

A draft of the standard text is available at https://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt.

Browsable BNF grammar of Part 2 (alternative source).

SQL-86

The standard is available as FIPS 127 at nist.gov.

You can’t catch up on 20 years of SQL evolution in one day. Subscribe the newsletter via E-Mail, Bluesky or RSS to gradually catch up and to keep modern-⁠sql.com on your radar.

About the Author

Photo of Markus Winand

Markus Winand provides insights into SQL and shows how different systems support it at modern-sql.com. Previously he made use-the-index-luke.com, which is still actively maintained. Markus can be hired as trainer, speaker and consultant via winand.at.

Buy the Book

Cover of “SQL Performance Explained”: Squirrel running on grass

The essence of SQL tuning in 200 pages

Buy now!
(paperback and/or PDF)

Paperback also available at Amazon.com.

Hire Markus

Markus offers SQL training and consulting for developers working at companies of all sizes.
Learn more »

Footnotes

  1. I’m concluding that the 2017 paper is an earlier version of the ISO TR due to the striking similarity of the table of contents.

Connect with Markus Winand

Subscribe mailinglistsSubscribe the RSS feedMarkus Winand on LinkedInMarkus Winand on XINGMarkus Winand on TwitterMarkus Winand on Bluesky
Copyright 2015-2024 Markus Winand. All righs reserved.
Legal | Contact | NO WARRANTY | Trademarks | Privacy and GDPR