Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL Postcode

Author  Topic 

godspeedba
Yak Posting Veteran

90 Posts

Posted - 2008-10-27 : 10:02:52
Is there anyway that SQL can strip the space in a postcode. so that for example

N1 2DA becomes N12DA
and
NW19A 4da becomes NW19A 4DA

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-27 : 10:03:43
use REPLACE

REPLACE(yourcol,' ','')
Go to Top of Page

godspeedba
Yak Posting Veteran

90 Posts

Posted - 2008-10-27 : 11:28:42
legend, nice one
Go to Top of Page
   

- Advertisement -