SQLRef

Tutorials and examples for common SQL commands.

Querying data (DQL)

The Basics

Joins

Aggregations

Date Functions

Utilities

Defining data structures (DDL)

DDL is used to define the structure of data.

Create

Alter

Drop

DML

DML is used to alter data.

Insert

Update

Delete

Sample schema

Most of our examples use the same schema. You can view that schema here