Structured Query Language (original) (raw)
From Wikibooks, open books for an open world
Structured Query Language (SQL) is a widely-used programming language for working with relational databases. The name of the language is generally pronounced as the three letters of its abbreviation ˈɛs kjuː ˈɛl or, in some people's usage, as
ˈsiːkwəl.
This Wikibook provides a short description of SQL, its origins, basic concepts and components, and many examples. The book follows the specifications of the SQL:2011 standard developed by a common committee of ISO and IEC. Their publications are not freely available but can be ordered online.[1] Or you may want to refer to a working draft that you can download from Whitemarsh Information Systems Corporation.
Introduction
Database Management Systems (DBMS)
SQL: A Language for Working with rDBMS
SQL: The Standard ISO IEC 9075 and various Implementations
The Snippets Corner 
SELECT code FROM examples WHERE topic = ...
Foundation
Data Query Language
Data Manipulation Language
Data Definition Language
Data Control Language
Managing Rights (GRANT / REVOKE)
Advanced Topics
Additional SELECT features
Pattern Matching (LIKE Predicate and much more)
Advanced Grouping: Rollup / Cube
Window functions (Data Warehouses, OLAP)
With Clause (Common Table Expression CTE)
NULLs and the Three Valued Logic
Transactions / Isolation Levels
Some Notes on typical SQL (non-trivial) Tasks
Appendices
Warnings and Exceptions (SQLSTATE)
References
- ↑ "ISO/IEC 9075-2:2011: Information technology -- Database languages -- SQL -- Part 2: Foundation (SQL/Foundation)".
See also
- Wikibook MariaDB
- Wikibook Microsoft SQL Server
- Wikibook MySQL
- Wikibook Oracle Database
- Wikibook PostgreSQL
- Wikibook SQLite
- Wikibook SQL Dialects Reference
- Wikibook SQL Exercises
- Wikipedia: SQL Key Words