Archives of the TeradataForum
Message Posted: Sat, 22 Sep 2002 @ 01:42:19 GMT
I have two tables to match by phone number. Phone number in either case is in a standard 10 byte format with npa, nxx, line.
table 1 phone# decimal(10,0)
I've tried casting phone1 as char(10) and phone2 as dec(10,0) but no luck matching...comes up with a truncation error when casting phone1 as char(10) and comes up with 'bad data' when casting phone 2 as dec(10,0).
I finally got the match to work when I did a substring:
Not sure why this worked. Any suggestions on the best way to cast either one of the variables?
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|