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 |
|
maxchuie
Starting Member
2 Posts |
Posted - 2007-12-06 : 14:51:56
|
| how do extract the phone number only (123)558-9899 and display as a number value |
|
|
tfountain
Constraint Violating Yak Guru
491 Posts |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-12-06 : 15:13:06
|
Or use REPLACE function nested three times? E 12°55'05.25"N 56°04'39.16" |
 |
|
|
tfountain
Constraint Violating Yak Guru
491 Posts |
Posted - 2007-12-06 : 15:25:43
|
| I still like the recursive use of PATINDEX / REPLACE myself. :) It allows some flexibility in case the formats come in with different characters or unexpected characters. In addition, it can be used for data cleansing operations too. |
 |
|
|
|
|
|