I'm very new to writing sql queries. I'm trying to convert a text field to numeric so I can work with it in another program. This is the snippet I'm trying to work with. I keep getting error messages. The field I want as numeric is CNS_USRFLD_107
SELECT
REM_PID AS PID,
--SUBSTRING (rm.REM_PIN, 1,12) AS GPIN,
REM_PIN AS CAMA_GPIN,
CASE WHEN CAST(CNS_USRFLD_107 as numeric)
CONSTRRES.CNS_USRFLD_107 AS RESIDENTIAL_SUBDIVISION_ADJUST_PER,
GIS_EXT.GIS.TAX_PARCEL.SHAPE
FROM
VISION_DEV.Vision.Real_Prop.REALMAST
INNER JOIN
VISION_DEV.Vision.real_Prop.CONSTRRES
ON
REM_PID = CNS_PID