I have a very large table and one of the columns is a char(25) datatype. The problem is not all the data in this column has the same length yet when I query to get the distinct length, everything comes back 25. I need to alter some of the data and was trying to do it by the length. Here is an example of the data:
015M8000200
240010240
I need to take anything that has the trailing two zeros and remove those two zeros. I have tried all sorts of things like trying to trim the data so the actual field length is right but nothing has worked. Any advice?
015M8000200
240010240
I need to take anything that has the trailing two zeros and remove those two zeros. I have tried all sorts of things like trying to trim the data so the actual field length is right but nothing has worked. Any advice?