Excel → T-SQL › SUBSTITUTE

SUBSTITUTE to REPLACE

REPLACE replaces every match. Excel SUBSTITUTE can take an instance number. T-SQL does not.

REPLACE(postcode, ' ', '')

Nth occurrence only: you need more than REPLACE. Usually you wanted all of them.

Canonical translation

REPLACE(postcode, ' ', '')

Then write it on a ticket

Monday is free. A colleague asks, you type, we mark it.

Clock in free