Curriculum
In this tutorial, we will introduce you to the SQL language, discuss standard SQL and some popular SQL dialects.
SQL is a programming language designed to manage data stored in a relational database management system (RDBMS).
SQL stands for the structured query language. It is pronounced as /ˈɛs kjuː ˈɛl/ or /ˈsiːkwəl/.
SQL consists of a data definition language, data manipulation language, and a data control language.
SQL was one of the first commercial database languages since 1970. Since then different database vendors implemented SQL in their products with some variations. To bring greater conformity between the vendors, the American Standards Institute (ANSI) published the first SQL standard in 1986.
ANSI then updated the SQL standard in 1992, known as SQL92 and SQL2, and again in 1999 as SQL99 and SQL3. Every time, ANSI added new features and commands into the SQL language.
The SQL Standard is now maintained by both ANSI and International Standards Organization as ISO/IEC 9075 standard. The latest release standard is SQL:2011.
The SQL standard formalizes SQL syntax structures and behaviors across database products. It becomes even more important to the open-source databases such as MySQL and PostgreSQL where the RDBMS are developed mainly by the communities rather than big corporations.
The community constantly requests new features and capabilities that do not exist in the SQL standard yet, therefore, even with the SQL standard in place, there are many SQL dialects in various database products.
Because ANSI and ISO have not yet developed these important features, RDBMS vendors (or communities) are free to invent their own new syntax structure.
The following are the most popular dialects of SQL:
In each tutorial, we will explain the SQL syntax structures and behaviors that are valid across the databases. We also will discuss the exceptions if they exist in a particular database.