SyntaxFix
Write A Post
Hire A Developer
Questions
Something else you can use is isnull:
isnull
isnull( SUBSTRING(PostCode, 1 , CHARINDEX(' ', PostCode ) -1), PostCode)