SQL Tutorial
SQL (Structured Query Language) is a standard language for managing and working with relational databases.
In this tutorial you will learn how to use SQL to access and process data in systems such as MySQL, SQL Server, Access, Oracle, Sybase, and DB2. The examples here were tested with MySQL.
Learning path
Basics
Queries
- TOP / LIMIT · LIKE · Wildcards
- IN · BETWEEN · Aliases
- JOIN · INNER · LEFT · RIGHT · FULL
- UNION · SELECT INTO · INSERT INTO SELECT
Schema & constraints
- CREATE DATABASE · CREATE TABLE
- Constraints · NOT NULL · UNIQUE · PRIMARY KEY · FOREIGN KEY · CHECK · DEFAULT
- CREATE INDEX · DROP · ALTER · AUTO INCREMENT
Functions & more
- Views · Dates · NULL · ISNULL etc.
- Data Types · Engine Types
- Functions · AVG · COUNT · MAX · MIN · SUM
- GROUP BY · HAVING · EXISTS
- Quick Reference · Hosting · Summary
Example
sql
SELECT * FROM Websites;TIP
Continue with a specific engine: MySQL · SQLite · PostgreSQL
Next: SQL Intro
