I have a DB of raw data that has everything as varchar, one of the columns contains a price, which for the most part would convert into FLOAT easily. However, there are a few rows that have trash in that column with a bunch of characters and would not convert to float.
Is there a way to select only that rows that would convert to float (i.e. only the ones taht actually have a number)?
Thanks
Note: It is important to include the
+ 'e0'in the numeric test, as things like'+','$','.'and'3e8'would otherwise all return 1.