mercwrought
Programmer
Hi all, got another question. I have a table that has a row idnumber that can not be null and contains an int between 1 and 500000 and I need to find the missing numbers. Like I have row 1 and 2 but there is no row 3. I had an idea but then I do not believe it is on the right track.
any ideas?
Code:
select * from redpass r1 left join redpass r2 on r1.idnumber = r2.idnumber + 1 where r2.idnumber is NULL Order by r1.idnumber