I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1*1000 + Part2). I normalized that column, but I cannot ch
SELECT (ID+1) FROM table AS t1 LEFT JOIN table as t2 ON t1.ID+1 = t2.ID WHERE t2.ID IS NULL