Is there any SQL function that I can use to return all those records that have last 2 numbers greater than 31. Basically, there is one column: OpenDate in INT datatype stored as '19810281' and the last 2 values are 81(which should be a date) so it has erroneous data.
I want to query all those bad records which have last 2 numbers of column: OpenDate as greater than 31? Any suggestion would be greatly appreciated.