i have table_1 include some field, one field name is THROUGHPUT in char datatype(the value is number)
i want to use function avg() to get average value from all THROUGHPUT value in netezza,
i have tried code for convert to float :
SELECT Cast(THROUGPUT as float) AS A
FROM WIFI.WID_NM_DETAIL
ORDER BY A
when i execute the code, i have error ERROR: Bad float8 input format '1,248.2',
i tried to another datatype, but still error
How can i fix it ?
Thx