column99.00(EUR)per stay99.50(EUR)990.00(EUR)SOLD OUT 0 miles NW - 0 miles NWSOLD OUT 0 miles S - 0 miles SSOLD OUT 1 miles E - 1 miles ESOLD OUT 1 miles N - 1 miles NWhen I try this query:select hey = case when roomrate like '%(eur)%' then convert(float, replace(left(roomrate, charindex('.',roomrate)-1), ',', ''))*1.31 when roomrate like '%sold%' then 'Sold Out' else roomrate end, id_numfrom marriottwhere roomrate like '%eur%' or roomrate like '%sold%'group by roomrate, id_num I get this errorMsg 8114, Level 16, State 5, Line 1Error converting data type varchar to float.However when do this it worksselect hey = case when roomrate like '%(eur)%' then convert(float, replace(left(roomrate, charindex('.',roomrate)-1), ',', ''))*1.31 when roomrate like '%sold%' then 'Sold Out' else roomrate end, id_numfrom marriottwhere roomrate like '%eur%'group by roomrate, id_numWhy Is this?I need to get both filtering actions to work. If it contains "eur" then change the currency to correct USD amount, and if it contains "sold" then change it to "sold Out".