I have a table with 12,560 records from 5 years ago, that is, it does not have such a good modeling and it has a field called 'code' that the user filled with something like CA-0001. The problem is that at some point in the history of this database someone jumped a number and I need to know what that number was. What query would I run to find out which line was skipped?
NOTE: I am using SQL Server 2014.