Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Changing Phone Number Format - forum topic by ciw916

$
0
0

Hello,
 
I have some code that I wrote that joins 2 separate tables:
 
SELECT
A.*,
B.MTN_1
 
FROM
TABLE_1 AS A
 
JOIN
TABLE_2 AS B
ON A.ACCT_NUM=B.ACCT_NUM
 
WHERE A.MTN=B.MTN_1
 
The only problem is, MTN_1 is in '999-999-9999' (VARCHAR) format.  MTN is in '9999999999' (Character Fixed) format.  How can I change the Character Fixed format to match the 999-999-9999 format so I can use the columns in my join conditions?

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>