I am trying to join two tables which both share the social security number as a common field.
The problem is the fields are not the same datatype. In one table, it is varchar, and the other table has the field as integer.
Is there any way around this obstacle? Maybe a function that temporarily converts to a different data type?
My query looks like this:
The problem is the fields are not the same datatype. In one table, it is varchar, and the other table has the field as integer.
Is there any way around this obstacle? Maybe a function that temporarily converts to a different data type?
My query looks like this:
Code:
SELECT C.MBR_F_NM,
C.MBR_L_NM,
A.FOLDID,
B.USERID,
B.TIMECRTE,
B.SHRTDESC,
B.NOTETEXT
FROM DSNP.EYPTFOLD01 A,
DSNP.EYPTNOTE01 B,
DSNP.PR01_T_MBR C
WHERE A.CLUSTID=B.CLUSTID
AND A.FOLDID=C.MBR_SSN_NBR
AND B.USERID = 'XXXXX'