![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 24 Apr 2007 @ 20:52:52 GMT
Hi, We have an existing table with a character column containing US telephone numbers that are unfortunately stored in a variety of formats. For example:
9999999999
(999)999-9999
(999) 999-9999
999.999.9999
999/999-9999
999/999.9999
Can anyone suggest a clever way to cast this column to integer, ignoring all the non-numeric characters? Unfortunately, I'm not allowed to create a UDF, so I need a pure SQL solution. Thanks very much, Bob Duell
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 09 Nov 2008 | ||||||||||||||||||||||||||||||||||||||||||||||||