SQL

Selecting Data

Select specific columns:

SELECT column, other column
FROM table;

Select all columns:

SELECT *
FROM table;

Constraints

Select columns according to certain conditions, such as:

SELECT *
FROM table
WHERE {condition};

For example:

SELECT *
FROM table
WHERE column <= 2.5;

Sorting

SELECT DISTINCT *
FROM table
WHERE condition(s)
ORDER BY column ASC/DESC
LIMIT num_limit OFFSET num_offset;

Joins

Types:

TODO