Hopefully this is quite straight forward. I am trying to convert a column to int so I can sum on it.
SELECT (cast(RTRIM(pricing_prices)as int)) FROM returnxx where RMAid= '5'
errors
Conversion failed when converting the nvarchar value '9.8000000000000007' to data type int.
If I try bigint I get another error
Error converting data type nvarchar to bigint.
FLOORinstead. - LarnuINTandBIGINTare whole numbers, you should look atNUMERICorDECIMALif you want to keep decimal places - Mark Sinkinson