Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Generate the expected numbers and left join to the existing table to find missing ids or sequence values.
Produce a consecutive sequence of integers without a base table — using `generate_series` in PostgreSQL or a recursive CTE in all other engines.