I have a dirty table on Cloudera with a number string column. Some numbers are as-is in their 8-digit form while others are in scientific notation e.g. 91234567 vs 9.1234567E7. When numbers end in zero(es), there are fewer decimals e.g. 9.12E7 for 91200000. How do I convert all of them to their 8-digit representation?
I have tried the following, to no avail:
-- Remove 'E7' then convert the string to a decimal
,CASE WHEN m_number LIKE '