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.
| Author |
Topic |
|
rkumar28
Starting Member
49 Posts |
Posted - 2006-01-09 : 15:19:25
|
| Hi,I have a SSN field which is a char(12) field. The way the SSN is stored not consistent (Something like below):36-435-0001364-35-000136435-000136-3450001I trying to write an Sql that can grab only the numeric portion of the SSN and ignore the dashes (-).I want the output as: 364350001364350001364350001363450001Will appreciate any advice on this…..ThanksRaj |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-01-09 : 15:21:18
|
| SELECT REPLACE(SSN, '-', '')FROM YourTableTara Kizeraka tduggan |
 |
|
|
|
|
|