I have a table with a varchar column with values that should be integers (legacy application, built way before I got to the company).
I need to get a list of all the records that cannot be converted to integers, in order to fix them.
How can I do this?
A simple way is:
That assumes you are OK with losing decimals when you convert.