Quote:
|
It looks like this function only works on character fields.
|
You are right!
Quote:
|
... is there a way to convert the SSN to character in my query?
|
You may want to use DIGITS function like ...
Code:
SELECT DISTINCT
RIGHT( DIGITS(a.mbr_ssn_nbr), 4 ) AS ssn
...
Note: function CHAR(
number) may return a value with left justified.
So, RIGHT( CHAR(...), 4 ) may return a value including some trailing blanks.