i have the next problem, i have a table with a string column, but i need convert this column in decimal or float. I tried with cast and convert but doesn't work example
input
3.50
7.10
18.50
27.00
46.50
46.90
117.90
226.70
274.70
Not available
Not available
tried
select cast(price as decimal(16,2)) from products
output
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
i see this warnings
Warning: #1918 Encountered illegal value '' when converting to DECIMAL
Warning: # 1292 Wrong truncated DECIMAL value:
I need later multiplier this column with another column
TRIM()?