All notes, in reading order

963 published notes across every category.

SQL

SQL String Functions

Concatenating, trimming, slicing, replacing and searching text - and which of these functions changes name in every dialect.

Read more
SQL

SQL Numeric Functions

Rounding, truncating, absolute values, modulo and integer division - and the rounding rules that decide whether your invoice totals balance.

Read more
SQL

SQL Date and Time Functions

Current date and time, adding and subtracting intervals, differences between dates, extracting parts, and formatting - the least portable corner of SQ...

Read more
SQL

What NULL Really Means

NULL is not zero, not an empty string and not equal to itself. Learn what it represents, how it spreads through expressions and how to handle it delib...

Read more
SQL

GROUP BY Fundamentals

GROUP BY collapses rows into one row per distinct key. Learn the single rule that governs the select list and how NULLs are grouped.

Read more
SQL

HAVING, and WHERE vs HAVING

HAVING filters groups after aggregation, WHERE filters rows before it. Learn when each applies, why using both is usually correct, and which is faster...

Read more