Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Normalize empty or whitespace-only text values to `NULL` with `NULLIF(TRIM(...), '')`.
Use `ROW_NUMBER()` to identify duplicate rows and delete every copy except the one you want to keep.
Remove child rows that reference missing parent rows before enforcing referential integrity.
Remove leading and trailing whitespace from string values with `TRIM`.